/* ===================================
   Tiny Deficit - Styles
   Primary Color: #BF3143 (Raspberry Red)
   =================================== */

:root {
    /* Colors */
    --primary: #BF3143;
    --primary-dark: #A52A3A;
    --primary-light: #F5E6E8;
    --text-dark: #1A202C;
    --text-muted: #718096;
    --bg-cream: #F7FAFC;
    --bg-white: #FFFFFF;
    --border-gray: #CBD5E0;
    --success: #4CAF50;
    --warning: #FF8A3D;
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    
    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ===================================
   Base Styles
   =================================== */

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

body {
    font-family: var(--font-main);
    background: #F7FAFC;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 80px; /* Space for bottom nav */
}

/* ===================================
   App Container
   =================================== */

.app-container {
    max-width: 640px;
    margin: 0 auto;
    padding: var(--space-md);
}

/* ===================================
   Navigation
   =================================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border-gray);
    display: flex;
    justify-content: space-around;
    padding: var(--space-sm) 0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

.nav-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.nav-btn.active {
    color: var(--primary);
}

.nav-icon {
    font-size: 24px;
}

.nav-label {
    font-size: 12px;
    font-weight: 600;
}

/* ===================================
   Screens
   =================================== */

.screen {
    display: none;
    animation: fadeIn 0.3s ease;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Header
   =================================== */

.app-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding-top: var(--space-md);
    position: relative;
}

.back-link {
    position: absolute;
    left: 0;
    top: var(--space-md);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 400;
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.back-link:hover {
    color: #64748b;
}

.back-link i {
    font-size: 14px;
}

.app-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.app-tagline {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}

.screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-top: var(--space-md);
}

.screen-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

/* ===================================
   Cards
   =================================== */

.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    box-shadow: none;
    border: 1px solid #E2E8F0;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.card-header .card-title {
    margin-bottom: 0;
}

.card-actions {
    display: flex;
    gap: var(--space-sm);
}

/* ===================================
   Date Selector
   =================================== */



.date-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.date-nav-btn {
    background: #E2E8F0;
    border: none;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-nav-btn:hover {
    background: #CBD5E0;
    color: var(--primary);
}

.date-display {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.date-input {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 600;
    border: 2px solid var(--border-gray);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
    width: 100%;
    max-width: 100%;
    cursor: pointer;
    transition: border-color 0.2s ease;
    color: #000000;
}

.date-input:focus {
    outline: none;
    border-color: var(--primary);
}

.day-info {
    display: none;
}

/* ===================================
   Weight Inputs
   =================================== */

.weight-inputs {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.input-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;
    font-family: var(--font-main);
    font-size: 24px;
    font-weight: 600;
    padding: var(--space-md);
    border: 2px solid var(--border-gray);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.2s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.conversion-arrow {
    font-size: 20px;
    color: var(--primary);
    font-weight: 700;
    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    height: 52px;
    margin-bottom: 8px;
}

/* ===================================
   Summary
   =================================== */

.summary-grid {
    display: grid;
    gap: var(--space-md);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: var(--bg-cream);
    border-radius: var(--radius-md);
}

.summary-item.net {
    background: var(--primary-light);
    font-weight: 600;
}

.summary-label {
    font-size: 14px;
    color: var(--text-dark);
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

/* ===================================
   Item Lists (Food & Exercise)
   =================================== */

.item-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: var(--bg-cream);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.item:hover {
    background: var(--primary-light);
}

.item-info {
    flex: 1;
}

.item-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
}

.item-details {
    font-size: 12px;
    color: var(--text-muted);
}

.item-note {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    font-style: italic;
}

.item-value {
    font-weight: 700;
    color: var(--primary);
    font-size: 16px;
}

.item-actions {
    display: flex;
    gap: var(--space-xs);
}

.item-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: var(--space-xs);
    transition: color 0.2s ease;
}

.item-delete:hover {
    color: #e53935;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: var(--space-xl) var(--space-md);
    font-size: 14px;
}

/* ===================================
   Buttons
   =================================== */

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-cream);
    color: var(--text-dark);
    border: 2px solid var(--border-gray);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.btn-sm {
    padding: var(--space-sm) var(--space-md);
    font-size: 14px;
    min-width: 100px;
}

.card-actions {
    display: flex;
    gap: var(--space-sm);
}

.card-actions .btn-sm {
    flex: 1;
    max-width: 130px;
    white-space: nowrap;
}

/* ===================================
   Modals
   =================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    animation: fadeIn 0.2s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-gray);
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-form {
    padding: var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    font-family: var(--font-main);
    font-size: 16px;
    padding: var(--space-md);
    border: 2px solid var(--border-gray);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input[type="text"],
.form-group input[type="number"] {
    height: 44px;
    padding: 10px var(--space-md);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    gap: var(--space-md);
    padding-top: var(--space-md);
}

.modal-actions button {
    flex: 1;
}

/* Preset Food Items */
.preset-food-items {
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    min-height: 60px;
    max-height: 150px;
    overflow-y: auto;
}

.preset-food-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: #F8FAFC;
    border-radius: 6px;
    margin-bottom: 6px;
}

.preset-food-item:last-child {
    margin-bottom: 0;
}

.preset-item-info {
    flex: 1;
}

.preset-item-name {
    font-weight: 500;
    font-size: 14px;
    color: #1E293B;
}

.preset-item-calories {
    font-size: 13px;
    color: #64748B;
}

.preset-item-remove {
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 18px;
    cursor: pointer;
    padding: 0 8px;
    transition: color 0.2s;
}

.preset-item-remove:hover {
    color: var(--primary);
}

.preset-add-item {
    display: flex;
    gap: 8px;
    align-items: center;
}

.preset-add-item input {
    flex: 1;
    min-width: 0;
}

.preset-add-item input[type="text"] {
    flex: 2;
}

.preset-add-item input[type="number"] {
    flex: 0 0 90px;
}

#lookup-calories-btn {
    flex: 0 0 auto;
    min-width: 40px;
    padding: 10px 12px;
    height: 44px;
}

.preset-add-item input,
.preset-add-item button {
    height: 44px;
}

#preset-calories-calculated {
    font-size: 13px;
    color: #64748B;
    font-weight: normal;
}

/* Custom Dialog Styles */
.custom-dialog .dialog-content {
    max-width: 400px;
    padding: 0;
}

.dialog-body {
    padding: var(--space-lg);
    text-align: center;
}

.dialog-icon {
    font-size: 48px;
    margin-bottom: var(--space-md);
}

.dialog-icon-info {
    color: #3B82F6;
}

.dialog-icon-warning {
    color: #F59E0B;
}

.dialog-message {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.5;
    margin: 0;
}

.dialog-actions {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    border-top: 1px solid var(--border-gray);
}

.dialog-actions button {
    flex: 1;
}

/* Calorie Lookup Group */
.calorie-lookup-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.calorie-lookup-group button {
    flex: 0 0 auto;
    min-width: 44px;
    height: 44px;
    padding: 10px 12px;
}

.calorie-lookup-group input {
    flex: 1;
}

/* Preset Search Row */
.preset-search-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.preset-search-row input[type="text"],
.preset-search-row input[type="number"],
.preset-search-row button {
    height: 44px;
}

.preset-search-row input[type="text"] {
    flex: 1.5;
}

.preset-search-row input[type="number"] {
    flex: 0 0 120px;
    background: #F8FAFC;
}

.preset-search-row button {
    flex: 0 0 auto;
    min-width: 44px;
    padding: 0 12px;
}

.preset-items-list {
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 12px;
    min-height: 60px;
    max-height: 150px;
    overflow-y: auto;
    background: #FAFAFA;
}

.preset-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: #FFFFFF;
    border-radius: 6px;
    margin-bottom: 6px;
    border: 1px solid #E2E8F0;
}

.preset-list-item:last-child {
    margin-bottom: 0;
}

.preset-list-item-info {
    flex: 1;
}

.preset-list-item-name {
    font-weight: 500;
    font-size: 14px;
    color: #1E293B;
}

.preset-list-item-calories {
    font-size: 13px;
    color: #64748B;
    margin-right: 8px;
}

.preset-list-item-remove {
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 18px;
    cursor: pointer;
    padding: 0 8px;
    transition: color 0.2s;
}

.preset-list-item-remove:hover {
    color: var(--primary);
}

/* ===================================
   Presets Screen
   =================================== */

.presets-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.preset-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: none;
    border: 1px solid #E2E8F0;
}

.preset-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-sm);
}

.preset-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
}

.preset-calories {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.preset-description {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.preset-actions {
    display: flex;
    gap: var(--space-sm);
}

.preset-select-header {
    padding: var(--space-md);
    padding-bottom: 0;
    display: flex;
    justify-content: center;
}

.preset-select-list {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.preset-select-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: var(--bg-cream);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-select-item:hover {
    background: var(--primary-light);
}

/* ===================================
   Progress Screen
   =================================== */

.unit-toggle {
    display: flex;
    gap: var(--space-xs);
    background: var(--bg-cream);
    padding: var(--space-xs);
    border-radius: var(--radius-md);
}

.unit-btn {
    background: transparent;
    border: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

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

.chart-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-top: var(--space-lg);
    box-shadow: none;
    border: 1px solid #E2E8F0;
    min-height: 300px;
}

.chart-info {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-top: var(--space-md);
    box-shadow: none;
    border: 1px solid #E2E8F0;
}

.chart-summary {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
}

/* ===================================
   Data Management
   =================================== */

.data-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: nowrap;
}

.data-actions button,
.data-actions .import-btn {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.import-btn {
    background: var(--bg-cream);
    color: var(--text-dark);
    border: 2px solid var(--border-gray);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.import-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.hidden {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

/* ===================================
   Responsive Tweaks
   =================================== */

@media (max-width: 480px) {
    .conversion-arrow {
        transform: rotate(0deg);
        padding-top: 0;
    }
    
    .date-selector {
        align-items: center;
        gap: var(--space-md);
    }
    
    .date-nav-btn {
        background: transparent;
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
    
    .date-nav-btn:hover {
        background: transparent;
    }
    
    /* Slide-up modal for mobile */
    .modal {
        align-items: flex-end;
        padding: 0;
    }
    
    .modal-content {
        max-width: 100%;
        max-height: 85vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        margin: 0;
        animation: slideUpMobile 0.3s ease;
    }
    
    @keyframes slideUpMobile {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }
}

/* ===================================
   Preset Tabs
   =================================== */

.preset-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: var(--space-xs);
    box-shadow: var(--shadow-sm);
}

.preset-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    -webkit-tap-highlight-color: transparent;
}

.preset-tab:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.preset-tab.active {
    background: var(--primary);
    color: white;
}

.preset-tab-content {
    display: none;
}

.preset-tab-content.active {
    display: block;
}

.preset-tab-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: var(--space-md);
}

/* ===================================
   Settings Page
   =================================== */

.screen-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.settings-title-card {
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.settings-title-card h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.settings-section {
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.settings-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--space-sm);
}

.settings-section-header i {
    color: var(--primary);
    font-size: 18px;
}

.settings-section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    flex: 1;
}

.sync-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--border-gray);
    color: var(--text-muted);
    background: #f3f4f6;
    line-height: 1;
}

.sync-code-card {
    padding: 12px 14px;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    background: #f9fafb;
    margin: var(--space-md) 0;
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 56px;
}

.sync-code-text-container {
    flex: 1;
    min-width: 0;
}

.sync-code-text {
    font-family: monospace;
    color: #111827;
    word-break: break-all;
    font-size: 15px;
    line-height: 1.4;
}

.sync-copy-btn {
    flex: 0 0 auto;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    background: var(--primary);
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sync-copy-btn:hover {
    background: #A52838;
}

.settings-section-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: var(--space-md);
}

.settings-action-btn {
    width: 100%;
    max-width: 200px;
    padding: 12px var(--space-md);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    background: var(--primary);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.settings-action-btn:hover {
    background: var(--primary-dark);
}

.settings-action-btn.secondary {
    background: white;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.settings-action-btn.secondary:hover {
    background: #f8fafc;
}

.settings-action-btn.danger {
    background: white;
    color: #B94A48;
    border: 1px solid #E5B8B8;
}

.settings-action-btn.danger:hover {
    background: #FFF6F6;
}

.sync-input-container {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    background: #f9fafb;
    margin-top: var(--space-md);
}

.sync-input-container input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: white;
    outline: none;
}

.sync-link-btn {
    flex: 0 0 auto;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    background: #eef2f7;
    color: #5b6474;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.sync-link-btn:hover {
    background: #e2e8f0;
}

.settings-option-card {
    padding: var(--space-md);
    background: #f8fafc;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    margin-bottom: var(--space-md);
}

.settings-option-card:last-child {
    margin-bottom: 0;
}

.settings-option-card.danger {
    background: #FFF6F6;
    border-color: #F2D6D6;
}

.settings-option-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.settings-option-card.danger .settings-option-header {
    color: #B94A48;
}

.settings-option-header i {
    font-size: 16px;
    color: #64748b;
}

.settings-option-card.danger .settings-option-header i {
    color: #B94A48;
}

.settings-option-description {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 12px;
}

.settings-option-card.danger .settings-option-description {
    color: #A56A6A;
}

/* ===================================
   Utility Classes
   =================================== */

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}
