/* Dark Theme CSS for Time2RX */
/* Generated by the CoffeeCup HTML Editor - www.coffeecup.com */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    min-height: 100vh;
    line-height: 1.6;
}

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

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Auth Container */
.auth-container {
    display: none;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 40px 20px;
    text-align: center;
    color: white;
    border-bottom: 1px solid #475569;
}

.auth-title {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: #60a5fa;
}

.auth-subtitle {
    opacity: 0.9;
    font-size: 1rem;
    color: #94a3b8;
}

.auth-body {
    padding: 30px;
    background: #1e293b;
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #334155;
}

.auth-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.auth-tab.active {
    color: #60a5fa;
    border-bottom: 3px solid #60a5fa;
    font-weight: 600;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #e2e8f0;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #334155;
    border-radius: 8px;
    font-size: 16px;
    background: #0f172a;
    color: #e2e8f0;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: #64748b;
}

.auth-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.auth-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.google-button {
    background: #1e293b;
    color: #e2e8f0;
    border: 2px solid #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.google-button:hover:not(:disabled) {
    background: #334155;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
    color: #94a3b8;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #334155;
    z-index: 1;
}

.auth-divider span {
    background: #1e293b;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.auth-error, .auth-success {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.auth-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #fca5a5;
}

.auth-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #6ee7b7;
}

.forgot-password {
    text-align: center;
    margin-top: 15px;
}

.forgot-password a {
    color: #60a5fa;
    text-decoration: none;
    font-size: 14px;
}

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

/* Main App */
.main-app {
    display: none;
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px;
    background: #0f172a;
    min-height: 100vh;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

/* Compact Header */
.app-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #475569;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: 24px;
}
.title-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}
.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-title {
    font-size: 32px;
    font-weight: 700;
    color: #60a5fa;
    margin: 0;
	margin_bottom:-10px;
	
}

.app-subtitle {
    font-size: 1.3rem;
    color: #fff;
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: white;
}

.user-details {
    display: flex;
    align-items: center;
    gap: 10px; 
    color: white;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
}

.status-indicator {
    background: #059669;
    color: white;
    padding: 1px 3px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
	
}

.sign-out-btn {
    background: #000;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
}

.sign-out-btn:hover {
    background: #b91c1c;
}

.status-success {
    background: #059669;
    color: white;
}

.status-info {
    background: #0284c7;
    color: white;
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    justify-content: space-between;
    background: #1e293b;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 10px;
    position: relative;
    z-index: 10;
    border: 1px solid #334155;
}

.tab-btn {
    flex: 1;
    padding: 12px 15px;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #60a5fa;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}   

.tab-btn:hover:not(.active) {
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.1);
}

.tab-content {
    display: none;
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 400px;
}

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

/* Dashboard Styles */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #004eff;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    border-color: #475569;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    color: white;
    font-weight: 700;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
   
    font-weight: 500;
	margin-top:-30px;
	margin-left:50px;
}

.dashboard-section {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #334155;
}

.section-header h3 {
    margin: 0;
    color: #f1f5f9;
    font-size: 1.3rem;
    font-weight: 600;
}

.view-all-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-weight: 500;
}

.view-all-btn:hover {
    background: #2563eb;
}

.dashboard-schedule {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-schedule-item {
    display: flex;
    align-items: center;
    gap: 15px;
    
    background: #0f172a;
    border-radius: 8px;
    transition: all 0.2s ease;
    border-left: 4px solid #64748b;
}

.dashboard-schedule-item:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

.dashboard-schedule-item.completed {
    background: #0f172a;
    border-left-color: #10b981;
}

.dashboard-schedule-item.overdue {
    background: #0f172a ;
    border-left-color: #ef4444;
}

.dashboard-schedule-item.pending {
    background:#0f172a;
    border-left-color: #f59e0b;
}

.dashboard-schedule-item .schedule-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    accent-color: #10b981;
}

.dashboard-schedule-item .schedule-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-schedule-item .schedule-time {
    font-weight: 600;
    color: #60a5fa;
    font-size: 14px;
}

.dashboard-schedule-item .schedule-medication {
    font-size: 15px;
    color: #e2e8f0;
}

.dashboard-schedule-item.completed .schedule-medication {
    text-decoration: line-through;
    opacity: 0.7;
}

.dashboard-schedule-item .schedule-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.dashboard-schedule-item .schedule-status.status-completed {
    background: #059669;
    color: white;
}

.dashboard-schedule-item .schedule-status.status-overdue {
    background: #dc2626;
    color: white;
}

.dashboard-schedule-item .schedule-status.status-pending {
    background: #d97706;
    color: white;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* Create a container for the two sections */
.dashboard-schedule-appointments-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* Style adjustments for the sections when side by side */
.dashboard-schedule-appointments-container .dashboard-section {
    margin-bottom: 0;
}

.dashboard-schedule-appointments-container .section-header h3 {
    font-size: 18px;
}

/* Responsive: Stack on tablets and mobile */
@media (max-width: 768px) {
    .dashboard-schedule-appointments-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.dashboard-appointments {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-appointment-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dashboard-appointment-item:hover {
    border-color: #475569;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    background: #1e293b;
}

.dashboard-appointment-item.today {
    border-left: 4px solid #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.dashboard-appointment-item.doctor {
    border-left: 4px solid #3b82f6;
}

.dashboard-appointment-item.caregiver {
    border-left: 4px solid #8b5cf6;
}

.dashboard-appointment-item.therapy {
    border-left: 4px solid #f59e0b;
}

.dashboard-appointment-item.test {
    border-left: 4px solid #ef4444;
}

.appointment-time-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    text-align: center;
}

.appointment-date {
    font-weight: 600;
    color: #60a5fa;
    font-size: 14px;
    line-height: 1.2;
}

.appointment-time {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 2px;
}

.appointment-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.appointment-title {
    font-weight: 600;
    color: #f1f5f9;
    font-size: 15px;
}

.appointment-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: #374151;
    color: #d1d5db;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.appointment-location {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.quick-action-btn {
    background: #1e293b;
    border: 2px solid #334155;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.quick-action-btn:hover {
    border-color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.15);
}

.quick-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.quick-action-text {
    font-weight: 600;
    color: #e2e8f0;
    text-align: center;
}

.recent-activity {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #0f172a;
    border-radius: 8px;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.activity-text {
    flex: 1;
    font-size: 14px;
    color: #e2e8f0;
}

.activity-time {
    font-size: 12px;
    color: #94a3b8;
}

/* Medication Styles */
.medication-form {
    background: #1e293b;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #334155;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.medication-list {
    display: grid;
    gap: 15px;
}

.medication-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.medication-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transform: translateY(-2px);
    border-color: #475569;
}

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

.medication-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
}

.medication-dosage {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 4px;
}

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

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-edit {
    background: #3b82f6;
    color: white;
}

.btn-edit:hover {
    background: #2563eb;
}

.btn-delete {
    background: #dc2626;
    color: white;
}

.btn-delete:hover {
    background: #b91c1c;
}

.medication-schedule {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.schedule-time {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Medication Form Selector */
.medication-form-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.form-type-btn {
    background: #0f172a;
    border: 2px solid #334155;
    border-radius: 8px;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
}

.form-type-btn:hover {
    border-color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
    color: #e2e8f0;
}

.form-type-btn.active {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    font-weight: 600;
}

.form-icon {
    font-size: 24px;
}

/* Schedule Type Selector */
.schedule-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.schedule-type-btn {
    background: #0f172a;
    border: 2px solid #334155;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
}

.schedule-type-btn:hover {
    border-color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
    color: #e2e8f0;
}

.schedule-type-btn.active {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    font-weight: 600;
}

.schedule-icon {
    font-size: 20px;
}

/* Weekday Selector */
.weekday-selector {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    justify-content: center;
}

.weekday-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #0f172a;
    border: 2px solid #334155;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.weekday-btn:hover {
    border-color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
    color: #e2e8f0;
}

.weekday-btn.active {
    background: #059669;
    border-color: #059669;
    color: white;
}

/* Modern Time Picker */
.time-picker-modern {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}

.time-picker-modern input[type="time"] {
    padding: 10px 14px;
    border: 2px solid #334155;
    border-radius: 8px;
    font-size: 15px;
    background: #0f172a;
    color: #e2e8f0;
    font-weight: 500;
    transition: border-color 0.3s ease;
}

.time-picker-modern input[type="time"]:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.add-time-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.add-time-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Old Time Picker (kept for backward compatibility) */
.time-picker {
    display: flex;
    gap: 10px;
    align-items: center;
}

.time-picker select {
    padding: 8px;
    border: 1px solid #334155;
    border-radius: 4px;
    font-size: 14px;
    background: #0f172a;
    color: #e2e8f0;
}

.time-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.time-tag {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.time-tag button {
    background: none;
    border: none;
    color: #60a5fa;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-tag button:hover {
    background: rgba(96, 165, 250, 0.2);
}

/* Appointment Styles */
.appointment-form {
    background: #1e293b;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #334155;
}

.appointment-list {
    display: grid;
    gap: 15px;
}

.appointment-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    border-left: 4px solid #3b82f6;
}

.appointment-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transform: translateY(-2px);
    border-color: #475569;
}

.appointment-card.doctor { border-left-color: #3b82f6; }
.appointment-card.caregiver { border-left-color: #8b5cf6; }
.appointment-card.therapy { border-left-color: #f59e0b; }
.appointment-card.test { border-left-color: #ef4444; }
.appointment-card.other { border-left-color: #64748b; }

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

.appointment-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
}

.appointment-type {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.appointment-datetime {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 5px 0;
}

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

.datetime-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}
.dashboard-appointment-item.completed {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: #10b981;
}

.dashboard-appointment-item .appointment-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    accent-color: #10b981;
}

/* Caregiver Styles */
.caregiver-form {
    background: #1e293b;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #334155;
}

.caregiver-list {
    display: grid;
    gap: 15px;
}

.caregiver-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    border-left: 4px solid #3b82f6;
}

.caregiver-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transform: translateY(-2px);
    border-color: #475569;
}

.caregiver-card.doctor { border-left-color: #3b82f6; }
.caregiver-card.specialist { border-left-color: #8b5cf6; }
.caregiver-card.nurse { border-left-color: #f59e0b; }
.caregiver-card.therapist { border-left-color: #10b981; }
.caregiver-card.caregiver { border-left-color: #64748b; }
.caregiver-card.other { border-left-color: #6b7280; }

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

.caregiver-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
}

.caregiver-type {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.caregiver-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 10px;
}

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

/* Calendar Styles */
.monthly-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #334155;
    border-radius: 8px;
    overflow: visible;
    width: 100%;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
   
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    width: 100%;
   .calendar-header {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border: none;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.3);
}
}

.date-nav-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    flex-shrink: 0;
    font-weight: 500;
}

.date-nav-btn:hover {
    background: #2563eb;
}

.current-month {
    font-size: 1.2rem;
    font-weight: 600;
    color: #f1f5f9;
    text-align: center;
    flex: 1;
}

.calendar-day {
    
    min-height: 180px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid #475569;
    transition: all 0.3s ease;
}   

.calendar-day-header {
    background: #1e293b;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    color: #60a5fa;
    font-size: 0.9rem;
    border-bottom: 1px solid #334155;
}

.calendar-day:hover {
   background: linear-gradient(135deg, #334155 0%, #475569 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.calendar-day.today {
    background: rgba(96, 165, 250, 0.2);
    border: 2px solid #60a5fa;
    font-weight: bold;
}

.calendar-day.other-month {
    background: #0f172a;
    color: #64748b;
}

.calendar-day-number {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.calendar-tasks {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.calendar-task {
   
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    border-left-color: #67e8f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.calendar-task:hover {
    background: rgba(96, 165, 250, 0.3);
    transform: translateY(-1px);
}

.calendar-task.completed {
   background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    color: white !important;
    border-left-color: #86efac !important;
    text-decoration: line-through;
    opacity: 0.8;
}

.calendar-task.overdue {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white !important;
    border-left-color: #fca5a5 !important;
    animation: pulse 2s infinite;
}

.calendar-task.pending {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: white !important;
    border-left-color: #fde047 !important;
}

.calendar-task.skipped {
   background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%) !important;
    color: white !important;
    border-left-color: #d8b4fe !important;
    opacity: 0.8;
}

.calendar-task.appointment {
     background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%) !important;
    color: white !important;
    border-left-color: #fbcfe8 !important;
}

.calendar-task.doctor {
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%) !important;
    color: white !important;
    border-left-color: #fbcfe8 !important;
}

.calendar-task.caregiver {
 background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%) !important;
    color: white !important;
    border-left-color: #fbcfe8 !important;  
}

.calendar-task.therapy {
 background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%) !important;
    color: white !important;
    border-left-color: #fbcfe8 !important;  
}

.calendar-task.test {
 background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%) !important;
    color: white !important;
    border-left-color: #fbcfe8 !important;  
}

.task-time {
    font-weight: 600;
}

.task-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}  

/* Calendar Today Schedule Inline Layout */
.calendar-today-schedule {
    background: #1e293b;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    max-width: 600px;
    border: 1px solid #334155;
}

.calendar-today-schedule .schedule-list {
    display: block !important;
}

.calendar-today-schedule .schedule-item {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    padding: 12px !important;
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
    transition: all 0.2s ease !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
}

.calendar-today-schedule .schedule-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
    transform: translateY(-1px) !important;
    background: #1e293b !important;
}

.calendar-today-schedule .schedule-item.completed {
    background: rgba(16, 185, 129, 0.1) !important;
    border-color: #10b981 !important;
}

.calendar-today-schedule .schedule-item.overdue {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: #ef4444 !important;
}

.calendar-today-schedule .schedule-item.pending {
    background: rgba(245, 158, 11, 0.1) !important;
    border-color: #f59e0b !important;
}

.calendar-today-schedule .schedule-checkbox {
    width: 18px !important;
    height: 18px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    display: block !important;
    accent-color: #10b981;
}

.calendar-today-schedule .schedule-time {
    font-weight: 600 !important;
    color: #60a5fa !important;
    min-width: 80px !important;
    flex-shrink: 0 !important;
    font-size: 14px !important;
    margin: 0 !important;
    display: block !important;
}

.calendar-today-schedule .schedule-medication {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    margin: 0 !important;
    color: #e2e8f0;
}

.calendar-today-schedule .schedule-medication-name {
    font-weight: 600 !important;
    color: #e2e8f0 !important;
    margin: 0 !important;
    display: inline !important;
}

.calendar-today-schedule .schedule-medication-dosage {
    color: #94a3b8 !important;
    font-size: 14px !important;
    margin: 0 !important;
    display: inline !important;
}

.calendar-today-schedule .schedule-status {
    padding: 4px 12px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    display: block !important;
}

.calendar-today-schedule .schedule-status.status-completed {
    background: #059669 !important;
    color: white !important;
}

.calendar-today-schedule .schedule-status.status-overdue {
    background: #dc2626 !important;
    color: white !important;
}

.calendar-today-schedule .schedule-status.status-pending {
    background: #d97706 !important;
    color: white !important;
}

/* Calendar More Items and Tooltip Styles */
.calendar-more-items {
    transition: all 0.2s ease;
    background: #334155;
    color: #000;
}

.calendar-more-items:hover {
    background: #475569 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.calendar-items-tooltip {
    position: absolute;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    padding: 12px;
    z-index: 1000;
    min-width: 250px;
    max-width: 350px;
    display: none;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
}

.calendar-items-tooltip:before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #1e293b;
    filter: drop-shadow(0 -1px 1px rgba(0,0,0,0.3));
}

.calendar-items-tooltip.below:before {
    top: auto;
    bottom: -6px;
    border-bottom: none;
    border-top: 6px solid #1e293b;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3));
}

.calendar-items-tooltip .tooltip-header {
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #334155;
    font-size: 14px;
}

.calendar-items-tooltip .tooltip-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    color: #000;
}

.calendar-items-tooltip .tooltip-item:hover {
    background-color: #334155;
    padding-left: 4px;
    padding-right: 4px;
    margin-left: -4px;
    margin-right: -4px;
}

.calendar-items-tooltip .tooltip-item:not(:last-child) {
    border-bottom: 1px solid #334155;
}

.calendar-items-tooltip .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.calendar-items-tooltip .item-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-items-tooltip .item-text {
    flex: 1;
    color: #000;
}

.calendar-items-tooltip .item-text.completed {
    text-decoration: line-through;
    opacity: 0.7;
}

.calendar-items-tooltip .status-text {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 8px;
    color: #94a3b8;
}

/* Family UI Styles */
.family-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.family-modal-content {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.family-modal h3 {
    margin: 0 0 20px 0;
    color: #f1f5f9;
}

/* Notification Styles */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.notification-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border-left: 5px solid #ef4444;
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.notification-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
}

.notification-message {
    color: #94a3b8;
    margin-bottom: 20px;
    line-height: 1.4;
}

.notification-actions {
    display: flex;
    gap: 10px;
}

.notification-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-btn.primary {
    background: #3b82f6;
    color: white;
}

.notification-btn.primary:hover {
    background: #2563eb;
}

.notification-btn.secondary {
    background: #334155;
    color: #e2e8f0;
    border: 1px solid #475569;
}

.notification-btn.secondary:hover {
    background: #475569;
}

.notification-banner {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    border-left: 4px solid #ef4444;
    z-index: 1500;
    max-width: 350px;
    display: none;
}

.notification-banner.show {
    display: block;
    animation: slideInRight 0.3s ease;
}

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

.banner-content {
    display: flex;
    align-items: start;
    gap: 10px;
}

.banner-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.banner-text {
    flex: 1;
}

.banner-title {
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 4px 0;
    font-size: 14px;
}

.banner-message {
    color: #94a3b8;
    font-size: 13px;
    margin: 0;
}

.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.notification-modal-content {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #e2e8f0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #f1f5f9;
}

/* Compact Medication Cards - Single Line */
.medication-card-compact {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

.medication-card-compact:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transform: translateY(-1px);
    border-color: #475569;
}

.medication-single-line {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
    overflow: hidden;
}

.medication-single-line .medication-name {
    font-size: 1rem;
    font-weight: 600;
    color: #f1f5f9;
    flex-shrink: 0;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.medication-quick-info {
    color: #94a3b8;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.medication-schedule {
    color: #60a5fa;
    font-size: 0.8rem;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.medication-notes {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #334155;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* AI Assistant Styles */
.ai-assistant-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.ai-assistant-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-assistant-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.ai-assistant-panel {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    height: 500px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.ai-assistant-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.ai-assistant-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

#aiAssistantClose {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease;
}

#aiAssistantClose:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ai-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #0f172a;
}

.ai-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.ai-chat-messages::-webkit-scrollbar-track {
    background: #1e293b;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}

.ai-chat-message {
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 80%;
    word-wrap: break-word;
    line-height: 1.5;
    animation: messageSlideIn 0.3s ease;
}

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

.ai-chat-user {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.ai-chat-assistant {
    background: #1e293b;
    border: 1px solid #334155;
    color: #e2e8f0;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.ai-typing {
    padding: 14px 20px;
    display: flex;
    gap: 4px;
    align-items: center;
}

.ai-typing span {
    width: 8px;
    height: 8px;
    background: #60a5fa;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.ai-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.ai-chat-input-container {
    padding: 15px;
    border-top: 1px solid #334155;
    display: flex;
    gap: 10px;
    background: #1e293b;
    border-radius: 0 0 12px 12px;
}

#aiChatInput {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #334155;
    border-radius: 8px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

#aiChatInput:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#aiChatSend {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

#aiChatSend:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

#aiChatSend:active {
    transform: scale(0.95);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .ai-assistant-panel {
        width: calc(100vw - 40px);
        height: 60vh;
        bottom: 90px;
        right: 20px;
        left: 20px;
    }
    
    .ai-assistant-toggle {
        width: 56px;
        height: 56px;
    }
	
	 .medication-form-selector {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .form-type-btn {
        padding: 10px 6px;
        font-size: 12px;
    }
    
    .form-icon {
        font-size: 20px;
    }
    
    .schedule-type-selector {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .schedule-type-btn {
        flex-direction: row;
        justify-content: center;
        padding: 10px;
        gap: 10px;
    }
    
    .weekday-selector {
        gap: 6px;
    }
    
    .weekday-btn {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }
    
    .time-picker-modern {
        flex-direction: column;
        align-items: stretch;
    }
    
    .time-picker-modern input[type="time"] {
        width: 100%;
    }
    
    .add-time-btn {
        width: 100%;
    }
}
	
	


/* Mobile Calendar Styles */
.mobile-only {
    display: none;
}

.mobile-calendar-list {
    display: none;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    overflow: hidden;
}

.mobile-calendar-day {
    border-bottom: 1px solid #334155;
    padding: 15px;
    background: #1e293b;
}

.mobile-calendar-day.today {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-bottom-color: #2563eb;
}

.mobile-calendar-day.other-month {
    background: #0f172a;
    color: #64748b;
}

.mobile-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.mobile-day-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #94a3b8;
}

.mobile-day-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e2e8f0;
}

.mobile-calendar-day.today .mobile-day-name,
.mobile-calendar-day.today .mobile-day-number {
    color: white;
}

.mobile-day-tasks {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-calendar-task {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.85rem;
    border-left: 3px solid #60a5fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e2e8f0;
}

.mobile-calendar-task.completed {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: #10b981;
    text-decoration: line-through;
    opacity: 0.8;
}

.mobile-calendar-task.overdue {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: #ef4444;
}

.mobile-calendar-task.pending {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: #f59e0b;
}

.mobile-calendar-task.appointment {
    background: rgba(139, 92, 246, 0.1);
    border-left-color: #8b5cf6;
}

.mobile-task-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-task-time {
    font-weight: 600;
    font-size: 0.8rem;
    color: #60a5fa;
}

.mobile-task-name {
    font-size: 0.85rem;
    color: #e2e8f0;
}

.mobile-task-checkbox {
    margin-left: 8px;
    width: 18px;
    height: 18px;
    accent-color: #10b981;
}

.mobile-no-tasks {
    color: #64748b;
    font-style: italic;
    font-size: 0.85rem;
}

/* Responsive Media Queries */
@media screen and (max-width: 767px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    /* Dashboard Mobile Styles */
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 20px;
    }

    .stat-card {
        padding: 15px;
        gap: 12px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .dashboard-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .section-header h3 {
        font-size: 1.1rem;
    }

    .dashboard-schedule-item {
        gap: 12px;
        padding: 12px;
    }

    .dashboard-schedule-item .schedule-details {
        gap: 2px;
    }

    .dashboard-schedule-item .schedule-time {
        font-size: 13px;
    }

    .dashboard-schedule-item .schedule-medication {
        font-size: 14px;
    }

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

    .quick-action-btn {
        padding: 15px;
        gap: 8px;
    }

    .quick-action-icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

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

    /* Hide the grid calendar on mobile */
    .monthly-calendar {
        display: none;
    }
    
    /* Show mobile list calendar instead */
    .mobile-calendar-list {
        display: block;
    }

    .calendar-today-schedule .schedule-item {
        gap: 10px !important;
        padding: 10px !important;
    }
    
    .calendar-today-schedule .schedule-time {
        min-width: 70px !important;
        font-size: 13px !important;
    }
    
    .calendar-today-schedule .schedule-status {
        padding: 3px 8px !important;
        font-size: 11px !important;
    }

    .caregiver-contact {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* Desktop - hide mobile calendar */
@media (min-width: 768px) {
    .mobile-calendar-list {
        display: none;
    }
}

/* Tablet adjustments */
@media (min-width: 481px) and (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .monthly-calendar {
        grid-template-columns: repeat(3, 1fr) !important;
        max-height: 450px;
        overflow-y: auto;
    }
    
    .calendar-day {
        min-height: 90px !important;
        padding: 6px !important;
    }
    
    .calendar-task {
        font-size: 0.65rem !important;
    }
}