:root {
    --primary: #B8860B;
    --primary-dark: #8B6914;
    --primary-light: #DAA520;
    --tan-dark: #3E2723;
    --tan-medium: #5D4037;
    --tan-light: #795548;
    --tan-lighter: #A1887F;
    --background: #F5F1E8;
    --surface: #FFFFFF;
    --text-primary: #3E2723;
    --text-secondary: #6D4C41;
    --text-tertiary: #8D6E63;
    --border: #E0D5C7;
    --success: #B8860B;
    --error: #C62828;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}

.app-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

.mobile-frame {
    width: 100%;
    max-width: 100hw;
    min-height: 100vh;
    background: var(--surface);
    box-shadow: 0 20px 25px -5px rgba(62, 39, 35, 0.2), 0 10px 10px -5px rgba(62, 39, 35, 0.1);
    position: relative;
    overflow: hidden;
}

/* Status Bar */
.status-bar {
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.time {
    font-size: 14px;
    font-weight: 500;
}

.battery {
    width: 16px;
    height: 12px;
    border: 1px solid var(--tan-lighter);
    border-radius: 2px;
    position: relative;
}

.battery::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary);
    position: absolute;
    top: 1px;
    left: 1px;
}

/* Page Container */
.page-container {
    position: relative;
    min-height: calc(100vh - 52px - 80px);
    padding-bottom: 80px;
}

.page {
    display: none;
    min-height: calc(100vh - 52px - 80px);
}

.page.active {
    display: block;
}

.page-content {
    padding: 20px;
}

/* Page Header */
.page-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 10;
}

.back-btn {
    background: none;
    border: none;
    padding: 8px;
    margin-left: -8px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s;
    color: var(--tan-dark);
}

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

.back-btn.white {
    color: white;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
}

.spacer {
    width: 36px;
}

/* Icons */
.icon {
    width: 20px;
    height: 20px;
}

.icon-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    color: var(--text-secondary);
    transition: background 0.3s;
}

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

/* Header */
.header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.greeting {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.sub-greeting {
    font-size: 12px;
    color: var(--text-tertiary);
}

.notification-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    position: relative;
    border-radius: 50%;
    transition: background 0.3s;
    color: var(--tan-dark);
}

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

.notification-dot {
    width: 8px;
    height: 8px;
    background: var(--error);
    border-radius: 50%;
    position: absolute;
    top: 4px;
    right: 4px;
}

/* Search */
.search-section {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
}

.search-input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    color: var(--text-primary);
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.search-input:focus {
    background: var(--surface);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.filter-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(184, 134, 11, 0.3);
}

.filter-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--tan-dark) 100%);
    box-shadow: 0 6px 8px -2px rgba(184, 134, 11, 0.4);
    transform: translateY(-1px);
}

/* Section */
.section {
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
}

.see-all-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.3s;
}

.see-all-btn:hover {
    color: var(--primary-dark);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(184, 134, 11, 0.2);
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon.teal,
.category-icon.green {
    background: linear-gradient(135deg, #F4E4C1 0%, #E8D5A8 100%);
    color: var(--tan-dark);
}

.category-icon.purple {
    background: linear-gradient(135deg, #E8D5A8 0%, #D4C5A0 100%);
    color: var(--tan-medium);
}

.category-icon.blue {
    background: linear-gradient(135deg, #DAA520 0%, #B8860B 100%);
    color: white;
}

.category-icon.pink {
    background: linear-gradient(135deg, #F5E6D3 0%, #E8D5A8 100%);
    color: var(--tan-medium);
}

.category-icon.orange {
    background: linear-gradient(135deg, #E8D5A8 0%, #D4B896 100%);
    color: var(--tan-dark);
}

.category-label {
    font-size: 12px;
    text-align: center;
}

/* Doctors List */
.doctors-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.doctor-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.doctor-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 16px -4px rgba(184, 134, 11, 0.3);
    transform: translateY(-2px);
}

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

.doctor-info-wrapper {
    display: flex;
    gap: 12px;
}

.doctor-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.doctor-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.doctor-specialty {
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.doctor-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.star {
    color: #fbbf24;
}

.doctor-price-section {
    text-align: right;
}

.doctor-price {
    font-size: 18px;
    color: var(--primary);
    font-weight: 700;
}

.price-label {
    font-size: 12px;
    color: var(--text-tertiary);
}

.doctor-actions {
    display: flex;
    gap: 8px;
}

.btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-outline {
    background: var(--surface);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.btn-outline:hover {
    background: rgba(184, 134, 11, 0.1);
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(184, 134, 11, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--tan-dark) 100%);
    box-shadow: 0 6px 8px -2px rgba(184, 134, 11, 0.4);
    transform: translateY(-1px);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.quick-action-card {
    padding: 16px;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: transform 0.3s;
}

.quick-action-card:hover {
    transform: translateY(-4px);
}

.blue-gradient {
    background: linear-gradient(135deg, var(--tan-medium) 0%, var(--tan-dark) 100%);
    box-shadow: 0 8px 16px -4px rgba(62, 39, 35, 0.4);
}

.green-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 8px 16px -4px rgba(184, 134, 11, 0.4);
}

.quick-action-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.quick-action-card p {
    font-size: 14px;
}

/* Tabs */
.tab-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: var(--background);
    color: var(--text-secondary);
    transition: all 0.3s;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(184, 134, 11, 0.3);
}

/* Filter Chips */
.filter-chips {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    overflow-x: auto;
    border-bottom: 1px solid #f3f4f6;
}

.chip {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    background: var(--surface);
    color: var(--text-secondary);
    transition: all 0.3s;
    font-weight: 500;
}

.chip.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 4px rgba(184, 134, 11, 0.3);
}

/* Doctors List Full */
.doctors-list-full {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.doctor-card-full {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(62, 39, 35, 0.08);
    cursor: pointer;
    transition: all 0.3s;
}

.doctor-card-full:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 16px -4px rgba(184, 134, 11, 0.3);
    transform: translateY(-2px);
}

.doctor-main-info {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.doctor-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.doctor-details {
    flex: 1;
}

.doctor-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 4px;
}

.rating-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #F4E4C1 0%, #E8D5A8 100%);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tan-dark);
}

.doctor-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 8px;
}

.doctor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.fee-section p:first-child {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 2px;
}

.fee-section p:last-child {
    font-size: 18px;
    color: var(--primary);
    font-weight: 700;
}

.book-btn {
    padding: 10px 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(184, 134, 11, 0.3);
}

.book-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--tan-dark) 100%);
    box-shadow: 0 6px 8px -2px rgba(184, 134, 11, 0.4);
    transform: translateY(-1px);
}

/* Appointments */
.appointments-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.appointment-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(62, 39, 35, 0.08);
}

.appointment-doctor {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.appointment-doctor-avatar {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
}

.appointment-doctor-info {
    flex: 1;
}

.appointment-doctor-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cancel-btn {
    padding: 4px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s;
    color: var(--text-tertiary);
}

.cancel-btn:hover {
    background: var(--background);
    color: var(--error);
}

.appointment-details {
    background: var(--background);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-row .icon {
    color: var(--primary);
}

.appointment-actions {
    display: flex;
    gap: 8px;
}

/* Lab Results */
.lab-results-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lab-result-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(62, 39, 35, 0.08);
    cursor: pointer;
    transition: all 0.3s;
}

.lab-result-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 16px -4px rgba(184, 134, 11, 0.3);
    transform: translateY(-2px);
}

.lab-result-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.lab-icon-wrapper {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #F4E4C1 0%, #E8D5A8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lab-icon-wrapper .icon {
    width: 24px;
    height: 24px;
    color: var(--tan-dark);
}

.lab-result-info {
    flex: 1;
}

.lab-test-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.lab-doctor {
    font-size: 14px;
    color: var(--text-secondary);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, #F4E4C1 0%, #E8D5A8 100%);
    color: var(--tan-dark);
    border: 1px solid var(--primary-light);
}

.lab-result-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.lab-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.view-details-btn {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
}

.view-details-btn:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Video Call */
.video-call-container {
    width: 100%;
    height: 100vh;
    background: #1f2937;
    position: relative;
}

.video-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.6) 100%);
}

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

.video-btn {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.video-btn:hover {
    background: rgba(0, 0, 0, 0.5);
}

.call-duration {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-size: 14px;
}

.video-self {
    position: absolute;
    top: 80px;
    right: 20px;
    width: 112px;
    height: 144px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

.video-self-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-info-overlay {
    position: absolute;
    bottom: 140px;
    left: 0;
    right: 0;
    padding: 0 20px;
}

.doctor-info-card {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 16px;
    border-radius: 16px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.speaking-indicator {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.speaking-indicator .icon {
    width: 24px;
    height: 24px;
}

.doctor-info-card h3 {
    font-size: 16px;
    margin-bottom: 2px;
}

.video-controls {
    position: absolute;
    bottom: 32px;
    left: 0;
    right: 0;
    padding: 0 20px;
}

.video-controls > div,
.video-controls {
    background: var(--surface);
    padding: 16px;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(62, 39, 35, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.control-btn {
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: var(--background);
    color: var(--tan-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.control-btn:hover {
    background: var(--border);
    transform: scale(1.05);
}

.control-btn.active {
    background: var(--error);
    color: white;
}

.control-btn.end-call {
    width: 64px;
    height: 64px;
    background: var(--error);
    color: white;
}

.control-btn.end-call:hover {
    background: #B71C1C;
    transform: scale(1.05);
}

.control-btn .icon {
    width: 24px;
    height: 24px;
}

.control-btn.end-call .icon {
    width: 28px;
    height: 28px;
}

/* Chat */
.chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
}

.chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-user-info {
    flex: 1;
}

.chat-user-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.online-status {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}

.chat-actions {
    display: flex;
    gap: 4px;
}

.chat-date-indicator {
    padding: 12px;
    text-align: center;
}

.chat-date-indicator span {
    background: var(--surface);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    font-weight: 500;
}

.chat-messages {
    padding: 16px 20px;
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    display: flex;
    gap: 8px;
    max-width: 75%;
}

.message.user {
    margin-left: auto;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
}

.message-bubble {
    padding: 10px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.message.doctor .message-bubble {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.message.user .message-bubble {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.message.user .message-time {
    text-align: right;
}

.chat-input-wrapper {
    padding: 16px 20px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: flex-end;
    gap: 8px;
    position: fixed;
    bottom: 2px;
    left: 0;
    right: 0;
    max-width: 100hw;
    margin: 0 auto;
}

.chat-input-container {
    flex: 1;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 14px;
    outline: none;
    color: var(--text-primary);
}

.chat-input::placeholder {
    color: var(--text-tertiary);
}

.emoji-btn {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 4px;
}

.send-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(184, 134, 11, 0.3);
}

.send-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--tan-dark) 100%);
    box-shadow: 0 6px 8px -2px rgba(184, 134, 11, 0.4);
    transform: translateY(-1px);
}

/* Consultations */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    padding: 12px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(62, 39, 35, 0.3);
}

.stat-card.blue {
    background: linear-gradient(135deg, var(--tan-medium) 0%, var(--tan-dark) 100%);
}

.stat-card.green {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.stat-card.purple {
    background: linear-gradient(135deg, var(--tan-light) 0%, var(--tan-medium) 100%);
}

.stat-card .icon {
    width: 20px;
    height: 20px;
    margin-bottom: 8px;
}

.stat-number {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
}

.consultations-list {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.consultation-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(62, 39, 35, 0.08);
}

.consultation-header {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.consultation-type {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.consultation-type .icon {
    width: 16px;
    height: 16px;
}

.consultation-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.consultation-status.upcoming {
    background: white;
    color: var(--primary-dark);
    font-weight: 600;
}

.consultation-status.completed {
    background: var(--tan-dark);
    color: white;
    font-weight: 600;
}

.consultation-body {
    padding: 16px;
}

.consultation-doctor {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.consultation-doctor-avatar {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
}

.consultation-doctor-info {
    flex: 1;
}

.consultation-doctor-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.consultation-details {
    background: var(--background);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.consultation-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    padding-top: 8px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

.consultation-note .icon {
    margin-top: 2px;
}

.consultation-actions {
    display: flex;
    gap: 8px;
}

/* Profile */
.profile-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 16px 20px 32px;
}

.profile-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.profile-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.edit-btn {
    background: none;
    border: none;
    color: white;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
}

.profile-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 15px -3px rgba(62, 39, 35, 0.3);
}

.profile-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.profile-avatar-wrapper {
    position: relative;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.online-dot {
    width: 24px;
    height: 24px;
    background: var(--primary);
    border: 2px solid white;
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    right: 0;
}

.profile-info h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.patient-id {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.premium-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #F4E4C1 0%, #E8D5A8 100%);
    color: var(--tan-dark);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.contact-info {
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

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

.contact-item .icon {
    width: 16px;
    height: 16px;
}

.contact-item .icon.green {
    color: var(--primary);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 20px;
    margin-top: -16px;
    margin-bottom: 20px;
}

.profile-stat {
    background: var(--surface);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(62, 39, 35, 0.08);
}

.profile-stat .stat-number {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 2px;
}

.profile-stat .stat-number.green {
    color: var(--primary);
}

.profile-stat .stat-number.blue {
    color: var(--tan-medium);
}

.profile-stat .stat-number.purple {
    color: var(--tan-light);
}

.profile-stat .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.profile-menu {
    padding: 0 20px 100px;
}

.menu-section {
    margin-bottom: 20px;
}

.menu-section-title {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
    padding: 0 8px;
    font-weight: 600;
}

.menu-items {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(62, 39, 35, 0.08);
}

.menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.3s;
    text-align: left;
}

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

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

.menu-item.logout:hover {
    background: #FFF5F5;
}

.menu-item > div:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-item-icon.green {
    background: linear-gradient(135deg, #F4E4C1 0%, #E8D5A8 100%);
}

.menu-item-icon.green .icon {
    color: var(--tan-dark);
}

.menu-item-icon.red {
    background: #fee2e2;
}

.menu-item-icon.red .icon {
    color: var(--error);
}

.menu-item span {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.logout-text {
    color: var(--error) !important;
}

.chevron {
    width: 20px;
    height: 20px;
    color: var(--text-tertiary);
}

.chevron.red {
    color: var(--error);
}

.version {
    text-align: center;
    font-size: 12px;
    color: var(--text-tertiary);
    padding: 16px 0;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100hw;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 8px 16px 12px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    box-shadow: 0 -4px 12px rgba(62, 39, 35, 0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 12px;
    min-width: 64px;
}

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

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

.nav-icon-wrapper {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s;
}

.nav-item.active .nav-icon-wrapper {
    background: rgba(184, 134, 11, 0.1);
}

.nav-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

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

.nav-label {
    font-size: 11px;
    font-weight: 500;
}

.nav-item.active .nav-label {
    font-weight: 600;
}

/* Central Appointment Button */
.nav-item.center-btn {
    position: relative;
    margin-top: -32px;
}

.nav-item.center-btn .nav-icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    box-shadow: 0 8px 24px -4px rgba(184, 134, 11, 0.5);
    border: 4px solid var(--surface);
}

.nav-item.center-btn:hover .nav-icon-wrapper {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--tan-dark) 100%);
    box-shadow: 0 12px 32px -4px rgba(184, 134, 11, 0.6);
    transform: translateY(-2px);
}

.nav-item.center-btn .nav-icon {
    width: 28px;
    height: 28px;
    color: white;
    stroke-width: 2.5;
}

.nav-item.center-btn .nav-label {
    color: var(--primary);
    font-weight: 600;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 480px) {
    .app-container {
        padding: 0;
    }
    
    .mobile-frame {
        max-width: 100%;
        box-shadow: none;
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
