/* Client Portal Styles */

:root {
    --primary-color: #4a9960;
    --primary-dark: #2d6e3e;
    --secondary-color: #f8f9fa;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
}

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

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    animation: slideUp 0.5s ease;
}

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

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.login-header h1 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.login-form label i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 153, 96, 0.1);
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.remember-me input {
    margin-right: 0.5rem;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.login-help {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.login-help a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-help a:hover {
    text-decoration: underline;
}

.demo-credentials {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.demo-credentials h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1rem;
}

.demo-credentials h4 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.demo-credentials p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Dashboard Section */
.dashboard-section {
    min-height: calc(100vh - 80px);
    background: #f5f7fa;
    padding: 2rem 0;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.welcome-message h1 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.welcome-message p {
    color: var(--text-light);
}

.logout-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.stat-info h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Dashboard Content */
.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.dashboard-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--secondary-color);
}

.card-header h2,
.card-header h3 {
    color: var(--text-dark);
    font-size: 1.25rem;
}

.card-header h2 i,
.card-header h3 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

/* Meal Plan */
.meal-plan-week {
    display: grid;
    gap: 1rem;
}

.meal-day {
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.meal-day:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(74, 153, 96, 0.1);
}

.meal-day.today {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(74, 153, 96, 0.05) 0%, rgba(74, 153, 96, 0.1) 100%);
}

.meal-day h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.today-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.meals {
    display: grid;
    gap: 0.75rem;
}

.meal-item {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.meal-item strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.meal-item strong i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.meal-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.meal-plan-notes {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff5e1 0%, #ffe5b4 100%);
    border-radius: 12px;
    border-left: 4px solid #ffc107;
}

.meal-plan-notes h4 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.meal-plan-notes h4 i {
    color: #ffc107;
    margin-right: 0.5rem;
}

.meal-plan-notes p {
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
}

/* New Meal Plan Format Styles */
.meal-plan-header {
    margin-bottom: 1.5rem;
}

.meal-plan-header h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 0;
}

.meals-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.meal-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.meal-section h4 {
    color: var(--primary-dark);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.meal-section h4 i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.meal-time {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: -0.5rem 0 1rem 0;
}

.food-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.food-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.food-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.food-name {
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
}

.food-serving {
    color: var(--text-light);
    font-size: 0.85rem;
    white-space: nowrap;
    margin-left: 1rem;
}

.food-macros {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.food-macros .macro {
    color: var(--text-light);
}

.food-macros .macro strong {
    color: var(--text-dark);
}

.meal-totals {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.meal-totals strong {
    color: var(--primary-dark);
}

.meal-totals span {
    color: var(--text-dark);
    font-weight: 500;
}

/* Progress Chart */
.progress-item {
    margin-bottom: 1.5rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.progress-label span:first-child {
    color: var(--text-dark);
    font-weight: 500;
}

.progress-label span:last-child {
    color: var(--primary-color);
    font-weight: 600;
}

.progress-bar {
    height: 10px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.recent-weights {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--secondary-color);
}

.recent-weights h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.weight-entry {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.weight-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.weight-value {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Guidelines */
.guidelines-list {
    display: grid;
    gap: 1rem;
}

.guideline-item {
    padding: 1rem;
    border-left: 3px solid var(--primary-color);
    background: #f8f9fa;
    border-radius: 8px;
}

.guideline-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.guideline-item h4 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.guideline-item p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

/* Appointments */
.appointment-details {
    display: grid;
    gap: 1rem;
}

.appointment-date,
.appointment-time,
.appointment-notes {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.appointment-date i,
.appointment-time i,
.appointment-notes i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.no-appointment {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-light);
}

.no-appointment i {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 1rem;
}

/* Documents */
.documents-list {
    display: grid;
    gap: 0.75rem;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.document-item:hover {
    background: #e9ecef;
}

.document-item i:first-child {
    color: var(--danger-color);
    font-size: 1.25rem;
}

.document-item span {
    flex: 1;
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    gap: 0.75rem;
}

.action-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.action-btn:hover {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 2px 8px rgba(74, 153, 96, 0.1);
}

.action-btn i {
    margin-right: 0.75rem;
    color: var(--primary-color);
}

/* Tips Card */
.tips-card {
    background: linear-gradient(135deg, #fff5e1 0%, #ffe5b4 100%);
    border-left: 4px solid #ffc107;
}

.tip-content {
    color: var(--text-dark);
    line-height: 1.6;
}

.tip-content p {
    margin: 0;
    font-size: 0.95rem;
}

/* No Data States */
.no-data {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.no-data i {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 1rem;
}

/* Error Notification */
.error-notification {
    position: fixed;
    top: 100px;
    right: -400px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--danger-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 9999;
    transition: right 0.3s ease;
    max-width: 350px;
}

.error-notification.show {
    right: 20px;
}

.error-notification i {
    color: var(--danger-color);
    font-size: 1.5rem;
}

.error-notification span {
    color: var(--text-dark);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

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

.modal-header h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-body {
    padding: 2rem;
}

.modal-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--secondary-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-option:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.contact-option i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.contact-option strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.contact-option p {
    margin: 0;
    color: var(--text-light);
}

.contact-option a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-option a:hover {
    text-decoration: underline;
}

.modal-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #e7f3ff;
    border-left: 4px solid #2196F3;
    border-radius: 8px;
}

.modal-note i {
    color: #2196F3;
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

.modal-note p {
    margin: 0;
    color: #1976d2;
    font-size: 0.95rem;
    line-height: 1.5;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Booking Interface Styles */
.booking-section {
    margin-bottom: 2rem;
}

.booking-section h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.time-slot-btn {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.time-slot-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 153, 96, 0.3);
}

.time-slot-btn.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.time-slot-btn.booked {
    background: #f5f5f5;
    color: #999;
    border-color: #ddd;
    cursor: not-allowed;
}

.time-slot-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.booked-label {
    display: block;
    font-size: 0.7rem;
    margin-top: 0.25rem;
    color: #e74c3c;
}

.booking-summary-box {
    padding: 1.5rem;
    background: #e8f5e9;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.booking-summary-box h4 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.booking-summary-box p {
    margin: 0.5rem 0;
    color: var(--text-dark);
}

/* Availability Schedule Styles */
.availability-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.availability-section h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.availability-schedule {
    display: grid;
    gap: 0.75rem;
}

.availability-day {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.availability-day:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.availability-day.unavailable {
    opacity: 0.5;
    border-left-color: #ccc;
}

.availability-day-name {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 90px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.availability-day-name i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.availability-day.unavailable .availability-day-name i {
    color: #999;
}

.availability-hours {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.availability-time-slot {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.availability-day.unavailable .availability-time-slot {
    background: #999;
}

.unavailable-text {
    color: #999;
    font-style: italic;
    font-size: 0.9rem;
}

/* Availability Schedule Display on Dashboard */
.availability-schedule-display {
    padding: 0.5rem 0;
}

.availability-schedule-display > div {
    max-height: 300px;
    overflow-y: auto;
}

.availability-schedule-display > div::-webkit-scrollbar {
    width: 6px;
}

.availability-schedule-display > div::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.availability-schedule-display > div::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.availability-schedule-display > div::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Responsive availability */
@media (max-width: 480px) {
    .availability-day {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .availability-day-name {
        width: 100%;
    }
    
    .availability-hours {
        width: 100%;
    }
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .contact-option {
        padding: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 0.5rem;
    }
    
    .contact-option {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .dashboard-sidebar .dashboard-card {
        margin-bottom: 0;
    }
}

@media (max-width: 1024px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .logout-btn {
        width: 100%;
    }
    
    .dashboard-sidebar {
        grid-template-columns: 1fr;
    }
    
    .meal-day {
        padding: 1rem;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .welcome-message h1 {
        font-size: 1.5rem;
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transition: top 0.3s ease;
    max-width: 500px;
    font-weight: 500;
}

.notification.show {
    top: 20px;
}

.notification.error {
    background: var(--danger-color);
    color: white;
}

.notification.success {
    background: var(--success-color);
    color: white;
}

.notification.info {
    background: #3498db;
    color: white;
}

.notification.warning {
    background: var(--warning-color);
    color: white;
}

/* Smooth Animations for Updates */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#appointmentInfo {
    transition: opacity 0.2s ease;
}

.appointment-details {
    animation: slideInUp 0.3s ease;
}
