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

:root {
    --primary: #377676;
    --primary-dark: #2c5a5a;
    --primary-light: #4a8f8f;
    --secondary: #2c3e50;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    color: #2c3e50;
    line-height: 1.5;
}

#app {
    min-height: 100vh;
    background: #f5f5f5;
}

/* Screens */
.screen {
    display: none;
    min-height: 100vh;
}

.screen.active {
    display: block;
}

/* Welcome Screen */
.welcome-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
}

.logo-container {
    margin-bottom: 24px;
}

.company-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 24px;
    background: white;
    padding: 16px;
    box-shadow: var(--shadow);
}

.welcome-container h1 {
    color: white;
    font-size: 28px;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tagline {
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    font-size: 16px;
}

.phone-input-container {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.input-group {
    background: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 4px 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.input-group i {
    color: var(--primary);
    font-size: 18px;
    margin-right: 12px;
}

.input-group input {
    flex: 1;
    border: none;
    padding: 16px 0;
    font-size: 16px;
    outline: none;
    background: transparent;
}

.input-group input:focus {
    outline: none;
}

.btn {
    border: none;
    border-radius: 50px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: white;
    color: var(--primary);
    width: 100%;
}

.btn-primary:hover, .btn-primary:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-large {
    padding: 16px 24px;
    font-size: 18px;
}

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

.btn-link {
    background: transparent;
    color: white;
    text-decoration: underline;
    box-shadow: none;
}

.verification-code-container {
    margin-top: 24px;
}

.code-sent-text {
    color: white;
    margin-bottom: 16px;
    font-size: 14px;
}

/* App Header */
.app-header {
    background: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.header-logo span {
    font-weight: 600;
    font-size: 18px;
    color: var(--primary);
}

.icon-btn {
    background: transparent;
    border: none;
    font-size: 22px;
    color: var(--gray);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s;
}

.icon-btn:hover {
    background: var(--light);
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    background: white;
    padding: 8px 16px;
    gap: 8px;
    border-bottom: 1px solid #e9ecef;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tab-btn i {
    font-size: 20px;
}

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

/* Tab Content */
.tab-content {
    padding: 20px;
    min-height: calc(100vh - 140px);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Booking Container */
.booking-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

/* Appointments List */
.appointments-list {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.appointment-card {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 16px;
    transition: all 0.3s;
}

.appointment-card:last-child {
    border-bottom: none;
}

.appointment-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.cancel-appt-btn {
    background: var(--danger);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    margin-top: 8px;
}

/* Account Tab */
.account-container {
    max-width: 400px;
    margin: 0 auto;
}

.profile-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.profile-avatar {
    color: var(--primary);
    margin-bottom: 12px;
}

.profile-card h3 {
    margin-bottom: 4px;
}

.profile-card p {
    color: var(--gray);
    margin-bottom: 16px;
}

.points-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 16px;
    border-radius: var(--border-radius);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
}

.points-card i {
    font-size: 28px;
}

.points-card span {
    font-size: 32px;
}

.qr-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.qr-section h4 {
    margin-bottom: 16px;
    color: var(--primary);
}

.qr-container {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.qr-container img {
    max-width: 200px;
    height: auto;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 8px;
}

.qr-note {
    font-size: 12px;
    color: var(--gray);
}

/* Toast Messages */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    background: var(--dark);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

.toast.warning {
    background: var(--warning);
    color: #856404;
}

@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Error Message */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--gray);
}

.loading-spinner i {
    font-size: 24px;
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 480px) {
    .tab-btn span {
        font-size: 12px;
    }
    
    .tab-btn i {
        font-size: 18px;
    }
    
    .booking-container {
        padding: 16px;
    }
}