/* ===== MOBILE FIRST CSS - RAJINKUY ===== */
/* ===== VARIABLES & RESET ===== */
:root {
    /* Primary Colors */
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-light: #FFE0D6;
    
    /* Secondary Colors */
    --secondary: #00C853;
    --secondary-dark: #00A843;
    --secondary-light: #C8F5D4;
    
    /* Status Colors */
    --success: #48BB78;
    --warning: #ED8936;
    --error: #F56565;
    --info: #4299E1;
    
    /* Neutral Colors */
    --dark: #2D3748;
    --dark-gray: #4A5568;
    --gray: #718096;
    --light-gray: #A0AEC0;
    --light: #F7FAFC;
    --white: #FFFFFF;
    --border: #E2E8F0;
    
    /* Semantic Colors */
    --background: #FFFFFF;
    --card-bg: #FFFFFF;
    --text-primary: #2D3748;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    
    /* Layout */
    --safe-area: env(safe-area-inset-bottom);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.1);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

.mobile-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    padding-bottom: 70px;
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
.app-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

/* ===== HEADER ===== */
.mobile-header {
    background: var(--white);
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-stats {
    display: flex;
    gap: 8px;
}

.stat {
    background: var(--light);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* ===== MAIN CONTENT ===== */
.mobile-main {
    padding: 15px;
    background: var(--background);
}

/* ===== HABIT CARDS ===== */
.habit-card-mobile {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 18px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.habit-card-mobile:active {
    transform: translateY(2px);
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}

.habit-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.habit-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    flex: 1;
    margin-right: 10px;
}

.streak-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
}

/* ===== PROGRESS CIRCLE ===== */
.progress-circle {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) 75%, var(--border) 0%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.circle::before {
    content: '';
    position: absolute;
    width: 56px;
    height: 56px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.circle span {
    position: relative;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.2;
}

/* ===== BUTTONS ===== */
.checkin-btn-mobile {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 14px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    margin: 12px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
    letter-spacing: 0.5px;
    min-height: 44px;
}

.checkin-btn-mobile:active {
    transform: translateY(2px);
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
}

.checkin-btn-mobile.checked {
    background: var(--secondary);
    box-shadow: 0 4px 8px rgba(72, 187, 120, 0.3);
}

.checkin-btn-mobile:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    padding: 16px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    letter-spacing: 0.5px;
    min-height: 44px;
}

.submit-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.4);
}

/* ===== QUICK ACTIONS ===== */
.quick-actions {
    display: flex;
    justify-content: space-around;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.btn-small {
    background: var(--light);
    border: 1px solid var(--border);
    font-size: 1.1rem;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-small:active {
    background: var(--primary-light);
    color: var(--primary);
    transform: scale(0.95);
}

/* ===== STATS CARDS ===== */
.quick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.stat-card {
    background: var(--card-bg);
    padding: 18px;
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.stat-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--border-radius);
    color: var(--primary);
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 10px max(10px, var(--safe-area));
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    min-width: 60px;
}

.nav-item.active {
    color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
}

.nav-item .icon {
    font-size: 1.4rem;
    margin-bottom: 4px;
    transition: transform 0.2s ease;
}

.nav-item.active .icon {
    transform: scale(1.1);
}

.nav-item .label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ===== FORM STYLES ===== */
.habit-form {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--white);
    color: var(--text-primary);
    font-family: inherit;
    min-height: 44px;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--light-gray);
}

/* ===== COLOR PICKER ===== */
.color-picker {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.color-picker input[type="color"] {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-height: 44px;
    min-width: 44px;
}

.color-value {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: var(--light);
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

/* ===== ALERT STYLES ===== */
.alert {
    padding: 14px 16px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    font-weight: 500;
    border: 1px solid;
}

.alert.error {
    background: #FEF5F5;
    color: var(--error);
    border-color: #FED7D7;
}

.alert.success {
    background: #F0FFF4;
    color: var(--success);
    border-color: #C6F6D5;
}

.alert.warning {
    background: #FFFBEB;
    color: var(--warning);
    border-color: #FEEBC8;
}

/* ===== WEEK CALENDAR ===== */
.week-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    background: var(--card-bg);
    padding: 18px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.week-day {
    text-align: center;
    padding: 10px 5px;
    border-radius: 10px;
    transition: all 0.2s ease;
    background: var(--white);
    border: 1px solid var(--border);
}

.week-day.today {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.day-name {
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.day-date {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.day-dots {
    display: flex;
    justify-content: center;
    gap: 2px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
}

/* ===== EMPTY STATES ===== */
.empty-state {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 40px 20px;
    text-align: center;
    margin: 20px 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.empty-state h3 {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ===== BACK BUTTON ===== */
.back-btn {
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.back-btn:active {
    background: var(--primary-light);
}

/* ===== QUICK CHECKIN STYLES ===== */
.quick-checkin-container {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.quick-checkin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

.quick-checkin-item:last-child {
    border-bottom: none;
}

.quick-checkin-item:active {
    background: var(--primary-light);
}

.habit-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.habit-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--border-radius);
    color: var(--primary);
}

.habit-details {
    flex: 1;
}

.quick-checkin-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: var(--border-radius-lg);
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background: var(--light);
    color: var(--text-muted);
    border: 2px solid var(--border);
    min-width: 44px;
    min-height: 44px;
}

.quick-checkin-btn.checked {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
    transform: scale(1.05);
}

.quick-checkin-btn:active:not(.checked) {
    transform: scale(0.95);
    background: var(--primary-light);
    color: var(--primary);
}

/* ===== STATS SUMMARY ===== */
.stats-summary {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: var(--light);
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 5px;
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--success);
    color: var(--white);
    padding: 14px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: transform 0.3s ease;
    max-width: 80%;
    text-align: center;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ===== PROGRESS BARS ===== */
.progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.completion-item {
    background: var(--card-bg);
    padding: 15px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* ===== NAVIGATION LINKS ===== */
.nav-links {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.nav-link {
    flex: 1;
    background: var(--card-bg);
    padding: 12px;
    text-align: center;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 360px) {
    .mobile-main {
        padding: 12px;
    }
    
    .habit-card-mobile {
        padding: 15px;
    }
    
    .circle {
        width: 60px;
        height: 60px;
    }
    
    .circle::before {
        width: 48px;
        height: 48px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .quick-checkin-btn {
        width: 50px;
        height: 50px;
    }
}

@media (min-width: 768px) {
    .mobile-main {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ===== TOUCH OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    .checkin-btn-mobile,
    .btn-small,
    .nav-item,
    .quick-checkin-btn,
    .nav-link {
        min-height: 44px;
        min-width: 44px;
    }
    
    .mobile-main {
        -webkit-overflow-scrolling: touch;
    }
    
    .habit-card-mobile,
    .stat-card {
        -webkit-user-select: none;
        user-select: none;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --background: #1A202C;
        --card-bg: #2D3748;
        --text-primary: #F7FAFC;
        --text-secondary: #E2E8F0;
        --text-muted: #A0AEC0;
        --border: #4A5568;
        --light: #2D3748;
        --white: #2D3748;
    }
    
    .mobile-body {
        background: var(--background);
        color: var(--text-primary);
    }
    
    .mobile-header {
        background: var(--card-bg);
        border-bottom-color: var(--border);
    }
    
    .habit-card-mobile,
    .stat-card,
    .habit-form,
    .week-calendar,
    .empty-state,
    .quick-checkin-container,
    .stats-summary,
    .completion-item,
    .achievements-section {
        background: var(--card-bg);
        border-color: var(--border);
        color: var(--text-primary);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background: #4A5568;
        color: var(--text-primary);
        border-color: var(--border);
    }
    
    .bottom-nav {
        background: var(--card-bg);
        border-top-color: var(--border);
    }
    
    .btn-small {
        background: #4A5568;
        border-color: var(--border);
        color: var(--text-secondary);
    }
    
    .color-value {
        background: #4A5568;
        color: var(--text-primary);
        border-color: var(--border);
    }
    
    .circle::before {
        background: var(--card-bg);
    }
    
    .circle span {
        color: var(--text-primary);
    }
    
    .nav-link {
        background: var(--card-bg);
        color: var(--text-primary);
        border-color: var(--border);
    }
    
    .nav-link.active {
        background: var(--primary);
        color: var(--white);
    }
}

/* ===== SAFE AREA SUPPORT ===== */
@supports(padding: max(0px)) {
    .mobile-body {
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }
    
    .bottom-nav {
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .bottom-nav,
    .mobile-header {
        display: none;
    }
    
    .mobile-body {
        padding: 0;
    }
    
    .mobile-main {
        padding: 20px;
    }
}

/* ===== TIP BOX ===== */
.tip-box {
    background: #EBF8FF;
    padding: 18px;
    border-radius: var(--border-radius);
    border: 1px solid #BEE3F8;
    margin-top: 20px;
}

.tip-box h4 {
    color: #2B6CB0;
    margin-bottom: 10px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tip-box ul {
    margin-left: 20px;
    color: #2C5282;
}

.tip-box li {
    margin-bottom: 6px;
    font-size: 0.9rem;
    line-height: 1.4;
}
/* ===== FORM STYLES ===== */
.habit-form {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--white);
    color: var(--text-primary);
    font-family: inherit;
    min-height: 44px;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--light-gray);
}

/* ===== COLOR PICKER ===== */
.color-picker {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.color-picker input[type="color"] {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-height: 44px;
    min-width: 44px;
}

.color-value {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: var(--light);
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

/* ===== ALERT STYLES ===== */
.alert {
    padding: 14px 16px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    font-weight: 500;
    border: 1px solid;
}

.alert.error {
    background: #FEF5F5;
    color: var(--error);
    border-color: #FED7D7;
}

.alert.success {
    background: #F0FFF4;
    color: var(--success);
    border-color: #C6F6D5;
}

.alert.warning {
    background: #FFFBEB;
    color: var(--warning);
    border-color: #FEEBC8;
}

/* ===== SUBMIT BUTTON ===== */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    padding: 16px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    letter-spacing: 0.5px;
    min-height: 44px;
}

.submit-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.4);
}

/* ===== BACK BUTTON ===== */
.back-btn {
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.back-btn:active {
    background: var(--primary-light);
}

/* Bottom Navigation - Support 5 items */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 8px max(8px, var(--safe-area));
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    padding: 6px 8px;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    min-width: 50px;
    flex: 1;
    max-width: 80px;
}

.nav-item.active {
    color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
}

.nav-item .icon {
    font-size: 1.2rem;
    margin-bottom: 3px;
    transition: transform 0.2s ease;
}

.nav-item.active .icon {
    transform: scale(1.1);
}

.nav-item .label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Responsive untuk 5 menu */
@media (max-width: 360px) {
    .nav-item {
        padding: 5px 6px;
        min-width: 45px;
    }
    
    .nav-item .icon {
        font-size: 1.1rem;
    }
    
    .nav-item .label {
        font-size: 0.6rem;
    }
}

