/* BOB Home Care - Client Portal Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --purple: #8b5cf6;
    --blue: #3b82f6;
    --yellow: #f59e0b;
    --red: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    min-height: 100vh;
}

/* Auth Section */
.auth-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
.auth-card.hidden { display: none; }

.auth-title {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-title h2 { color: var(--primary); font-size: 1.75rem; margin-bottom: 0.5rem; }
.auth-title p { color: var(--gray-600); }

.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--gray-700); font-size: 0.9rem; }
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}
.form-input:focus { outline: none; border-color: var(--primary); }

.auth-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
}
.auth-btn:hover { background: var(--primary-dark); }

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}
.auth-links a {
    color: var(--purple);
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
}
.auth-links a:hover { text-decoration: underline; }

/* Dashboard Section */
.dashboard-section { display: none; }
.dashboard-section.active { display: block; }

.dashboard-header {
    background: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    gap: 0.5rem;
}
.dashboard-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}
.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Tabs */
.tab-nav {
    display: flex;
    gap: 0;
    background: white;
    border-bottom: 2px solid var(--gray-200);
    overflow-x: auto;
}
.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-600);
    white-space: nowrap;
    transition: all 0.2s;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

.tab-content { display: none; padding: 1.5rem; max-width: 900px; margin: 0 auto; }
.tab-content.active { display: block; }

/* Booking Form */
.booking-form-section { margin-bottom: 2rem; }
.section-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; color: var(--gray-700); }

.property-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.property-type-option {
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.property-type-option:hover { border-color: var(--primary); }
.property-type-option.selected { border-color: var(--primary); background: #ecfdf5; }
.property-type-option .icon { font-size: 1.5rem; margin-bottom: 0.25rem; }
.property-type-option .label { font-size: 0.85rem; font-weight: 500; }

/* Price Breakdown */
.price-breakdown {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}
.price-breakdown h3 { color: var(--primary-dark); margin-bottom: 1rem; }
.price-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}
.price-total {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Booking Cards */
.booking-item {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s;
}
.booking-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.booking-service { font-weight: 600; font-size: 1.05rem; }
.booking-details { color: var(--gray-600); font-size: 0.9rem; line-height: 1.8; }

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}
.status-pending { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #d1fae5; color: #065f46; }
.status-assigned { background: #dbeafe; color: #1e40af; }
.status-completed { background: #e0e7ff; color: #3730a3; }
.status-canceled { background: #fee2e2; color: #991b1b; }

/* Profile */
.profile-form { max-width: 600px; }
.profile-toast {
    display: none;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.btn:hover { opacity: 0.9; }
.btn-primary { background: var(--primary); color: white; }
.btn-outline { background: transparent; border: 2px solid var(--gray-300); color: var(--gray-700); }
.btn-danger { background: var(--red); color: white; }

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}
.modal-overlay.active { display: flex; }
.modal-box {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Add-ons */
.addon-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}
.addon-checkbox { width: 18px; height: 18px; accent-color: var(--primary); }
.addon-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.addon-qty button {
    width: 28px; height: 28px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-weight: bold;
}
.addon-qty input {
    width: 40px;
    text-align: center;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    padding: 0.25rem;
}

/* Utility */
.hidden { display: none !important; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .auth-card { padding: 1.5rem; }
    .dashboard-header { padding: 0.75rem 1rem; }
    .tab-btn { padding: 0.75rem 1rem; font-size: 0.85rem; }
    .tab-content { padding: 1rem; }
    .property-type-grid { grid-template-columns: repeat(2, 1fr); }
    .booking-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
