:root {
    --primary: #f7931a;      /* Bitcoin orange */
    --primary-light: #ffa940;
    --primary-dark: #e67e00;
    --secondary: #4361ee;    /* Modern blue */
    --secondary-dark: #3a56d4;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --success: #2ecc71;
    --danger: #e74c3c;
    --bitcoin: #f7931a;
    --white: #ffffff;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 1rem 2rem rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 0.5rem;
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-100);
    overflow-x: hidden;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.logo i {
    font-size: 2rem;
    color: var(--bitcoin);
    margin-right: 0.75rem;
}

header h1 {
    color: var(--primary);
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.2;
}

.tagline {
    color: var(--gray-600);
    font-size: 1.125rem;
}

/* Card styles */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

/* Form styles */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

input, select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--white);
}

input::placeholder {
    color: var(--gray-500);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.25);
}

.input-with-select {
    display: flex;
    align-items: center;
}

.input-with-select input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-with-select select {
    width: 100px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
}

/* Personalise toggle */
.personalise-toggle {
    position: relative;
}

.personalise-toggle input {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
}

.toggle-button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--gray-100);
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-700);
    position: relative;
}

.toggle-icon {
    transform: rotate(0);
    transition: transform 0.3s ease;
    color: var(--gray-600);
    margin-right: 10px;
    flex-shrink: 0;
}

.toggle-button span:nth-child(2) {
    flex: 1;
    text-align: center;
    margin-right: 60px; /* Make space for the ON/OFF badge */
}

.toggle-state {
    position: absolute;
    right: 1rem;
    background-color: var(--gray-300);
    color: var(--gray-700);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    transition: var(--transition);
    width: 40px;
    text-align: center;
}

/* Style for when personalisation is active */
input:checked + .toggle-button {
    background-color: rgba(247, 147, 26, 0.05);
    border-color: var(--primary);
    color: var(--primary);
    border-width: 2px;
    font-weight: 500;
}

input:checked + .toggle-button .toggle-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

input:checked + .toggle-button .toggle-state {
    background-color: var(--primary);
    color: white;
}

/* Not checked state */
input:not(:checked) + .toggle-button .toggle-state {
    background-color: var(--gray-500);
}

/* Focus styles */
.toggle-button:focus-within,
.personalise-toggle input:focus + .toggle-button {
    box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.25);
    outline: none;
}

/* Share options container */
.share-options-container {
    margin-top: 1rem;
    border-left: 2px solid var(--primary);
    padding-left: 1rem;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.3s ease, margin 0.3s ease;
}

.share-options-container.visible {
    max-height: 1000px;
    opacity: 1;
    margin-bottom: 1.5rem;
}

/* Custom select */
.custom-select {
    position: relative;
}

.custom-select select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.5rem;
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--gray-600);
}

/* Fun combo buttons */
.fun-combos {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.fun-combos h3 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.fun-combos h3 i {
    margin-right: 0.5rem;
}

.combo-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.75rem;
}

.combo-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.combo-btn:hover {
    background-color: var(--primary-light);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.combo-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.combo-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.combo-date {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.combo-amount {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    background-color: rgba(247, 147, 26, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
}

.combo-btn:hover .combo-date {
    color: rgba(255, 255, 255, 0.8);
}

.combo-btn:hover .combo-amount {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Button styles */
.btn {
    display: inline-flex;
    font-weight: 500;
    text-align: center;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: var(--transition);
    align-items: center;
    justify-content: center;
}

.btn i {
    margin-right: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.btn-secondary:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-400);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Results section */
#results {
    display: none;
}

#result-content {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.8;
    text-align: center;
}

#result-content p {
    text-align: center;
    margin-bottom: 1.25rem;
    line-height: 1.7;
    color: var(--gray-700);
    padding: 0 0.5rem;
}

#result-content strong {
    color: var(--gray-900);
    font-weight: 600;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Page headings */
.page-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-heading i {
    margin-right: 0.5rem;
}

/* Result values */
.result-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1.5rem 0;
    text-align: center;
}

.result-percentage {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
    display: inline-block;
    border-radius: 30px;
    background-color: rgba(247, 147, 26, 0.05);
}

.positive {
    color: var(--success);
}

.negative {
    color: var(--danger);
}

/* Notification */
.notification {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background-color: var(--white);
    color: var(--gray-800);
    border-left: 4px solid var(--success);
    padding: 1rem;
    border-radius: 0.375rem;
    box-shadow: var(--shadow);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 1000;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
}

.notification-content i {
    color: var(--success);
    font-size: 1.25rem;
    margin-right: 0.75rem;
}

/* Footer styles */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 1.5rem;
}

footer p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--gray-200);
    color: var(--gray-700);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* Share preview styles */
.share-preview-container {
    margin: 2.5rem 0;
    text-align: center;
}

.preview-label {
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--gray-600);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-label:before {
    content: "\f070"; /* fa-eye-slash */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 0.5rem;
    color: var(--primary);
}

.share-preview {
    background-color: var(--white);
    border: 2px dashed var(--primary);
    border-radius: var(--border-radius);
    padding: 2rem;
    position: relative;
    background-color: rgba(247, 147, 26, 0.05);
    box-shadow: inset 0 0 20px rgba(247, 147, 26, 0.07);
}

.preview-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-heading i {
    margin-right: 0.5rem;
}

.share-preview p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
    color: var(--gray-700);
    padding: 0 0.5rem;
}

.share-preview strong {
    color: var(--gray-900);
    font-weight: 600;
}

.preview-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1.5rem 0;
    text-align: center;
}

.preview-percentage {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
    display: inline-block;
    border-radius: 30px;
    background-color: rgba(247, 147, 26, 0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .combo-buttons {
        grid-template-columns: 1fr;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .preview-value {
        font-size: 1.8rem;
    }
    
    .preview-percentage {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 1.25rem;
    }
    
    .input-with-select {
        flex-direction: column;
    }
    
    .input-with-select input {
        border-radius: 0.375rem;
        margin-bottom: 0.5rem;
    }
    
    .input-with-select select {
        width: 100%;
        border-radius: 0.375rem;
        border-left: 1px solid var(--gray-300);
    }
    
    .toggle-switch {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .switch {
        margin-top: 0.5rem;
    }
} 