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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background-color: #fafafa;
            min-height: 100vh;
            color: #333;
        }

        .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, #667eea 0%, #764ba2 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: white;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.2);
            width: 100%;
            max-width: 400px;
            overflow: hidden;
        }

        .auth-header {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            padding: 40px 20px;
            text-align: center;
            color: white;
        }

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

        .auth-subtitle {
            opacity: 0.9;
            font-size: 1rem;
        }

        .auth-body {
            padding: 30px;
        }

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

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

        .auth-tab.active {
            color: #4facfe;
            border-bottom: 3px solid #4facfe;
            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: #333;
        }

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

        .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
            outline: none;
            border-color: #4facfe;
            box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
        }

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

        .auth-button {
            width: 100%;
            padding: 15px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            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(102, 126, 234, 0.4);
        }

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

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

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

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

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

        .auth-divider span {
            background: white;
            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: #fff5f5;
            border: 1px solid #feb2b2;
            color: #c53030;
        }

        .auth-success {
            background: #f0fff4;
            border: 1px solid #9ae6b4;
            color: #22543d;
        }

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

        .forgot-password a {
            color: #4facfe;
            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: white;
            min-height: 100vh;
            
            box-shadow: 0 0 50px rgba(0,0,0,0.1);
        }

        .app-header {
            text-align: left;
            padding: 0px;
            border-bottom: 2px solid #f0f0f0;
            margin-bottom: 30px;
            background-color:#667eea; 
            color: white;
            height:100px; 
            margin-left:-20px;
            margin-right:-20px;
            margin-top:0px;
        }

        .app-title {
            font-size: 2.5rem;
            color: #fff;
            margin-left:25px;
        }

        .user-info {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: #667eea;
            padding: 10px;
            color:white;
            margin-bottom: 10px;
            margin-left:-20px;
            margin-right:-20px;
            margin-top:-40px;
        }

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

        .user-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #fff;
            color:#667eea;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
        }

        .sign-out-btn {
            background: #e53e3e;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
        }

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

        .status-indicator {
            
            border-radius: 20px;
            font-size: 14px;
            font-weight: 600;
            text-align: center;
            margin-bottom: 20px;
        }

        .status-success {
            background: #c6f6d5;
            color: #22543d;
        }

        .status-info {
            background: #bee3f8;
            color: #2c5282;
        }

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

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

        .tab-btn.active {
            background: white;
            color: #4facfe;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }   
        
        .tab-btn:hover:not(.active) {
            color: #000;
        }

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

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

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

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

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

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

        .medication-card:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            transform: translateY(-2px);
        }

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

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

        .medication-dosage {
            color: #666;
            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: #4facfe;
            color: white;
        }

        .btn-edit:hover {
            background: #3d8bfd;
        }

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

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

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

        .schedule-time {
            background: #e3f2fd;
            color: #1976d2;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 0.8rem;
            font-weight: 600;
        }

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

        .time-picker select {
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
        }

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

        .time-tag {
            background: #e3f2fd;
            color: #1976d2;
            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: #1976d2;
            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(25, 118, 210, 0.1);
        }

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

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

        .appointment-card {
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 20px;
            transition: all 0.3s ease;
            border-left: 4px solid #4facfe;
        }

        .appointment-card:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            transform: translateY(-2px);
        }

        .appointment-card.doctor { border-left-color: #4facfe; }
        .appointment-card.caregiver { border-left-color: #9c27b0; }
        .appointment-card.therapy { border-left-color: #ff9800; }
        .appointment-card.test { border-left-color: #f44336; }
        .appointment-card.other { border-left-color: #607d8b; }

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

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

        .appointment-type {
            background: #e3f2fd;
            color: #1976d2;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
        }

        .appointment-datetime {
            color: #666;
            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;
        }

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

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

        .caregiver-card {
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 20px;
            transition: all 0.3s ease;
            border-left: 4px solid #4facfe;
        }

        .caregiver-card:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            transform: translateY(-2px);
        }

        .caregiver-card.doctor { border-left-color: #4facfe; }
        .caregiver-card.specialist { border-left-color: #9c27b0; }
        .caregiver-card.nurse { border-left-color: #ff9800; }
        .caregiver-card.therapist { border-left-color: #4caf50; }
        .caregiver-card.caregiver { border-left-color: #607d8b; }
        .caregiver-card.other { border-left-color: #795548; }

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

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

        .caregiver-type {
            background: #e3f2fd;
            color: #1976d2;
            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: #e2e8f0;
            border-radius: 8px;
            overflow: visible;
            width: 100%;
        }

        .calendar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            width: 100%;
        }

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

        .date-nav-btn:hover {
            background: #3d8bfd;
        }

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

        .calendar-day {
            background: white;
            min-height: 120px;
            padding: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }   

        .calendar-day-header {
            background: #667eea;
            padding: 12px 8px;
            text-align: center;
            font-weight: 600;
            color: white;
            font-size: 0.9rem;
            border-bottom: 1px solid #e2e8f0;
        }

        .calendar-day:hover {
            background: #f7fafc;
        }

        .calendar-day.today {
            background: #fff3cd;
            border: 2px solid #ffc107;
            font-weight: bold;
        }

        .calendar-day.other-month {
            background: #f8f9fa;
            color: #999;
        }

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

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

        .calendar-task {
            background: #e3f2fd;
            color: #1976d2;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 0.7rem;
            cursor: pointer;
            transition: all 0.2s ease;
            border-left: 3px solid #1976d2;
        }

        .calendar-task:hover {
            background: #bbdefb;
            transform: translateY(-1px);
        }

        .calendar-task.completed {
            background: #c8e6c9 !important;
            color: #2e7d32 !important;
            border-left-color: #2e7d32 !important;
            text-decoration: line-through;
            opacity: 0.8;
        }

        .calendar-task.overdue {
            background: #ffcdd2 !important;
            color: #c62828 !important;
            border-left-color: #c62828 !important;
        }

        .calendar-task.pending {
            background: #fff3e0 !important;
            color: #f57c00 !important;
            border-left-color: #f57c00 !important;
        }

        .calendar-task.skipped {
            background: #e1bee7 !important;
            color: #7b1fa2 !important;
            border-left-color: #7b1fa2 !important;
        }

        .calendar-task.appointment {
            background: #f3e5f5 !important;
            color: #7b1fa2 !important;
            border-left-color: #7b1fa2 !important;
        }

        .calendar-task.doctor {
            background: #e3f2fd !important;
            color: #1976d2 !important;
            border-left-color: #1976d2 !important;
        }

        .calendar-task.caregiver {
            background: #f3e5f5 !important;
            color: #7b1fa2 !important;
            border-left-color: #7b1fa2 !important;
        }

        .calendar-task.therapy {
            background: #fff3e0 !important;
            color: #f57c00 !important;
            border-left-color: #f57c00 !important;
        }

        .calendar-task.test {
            background: #ffebee !important;
            color: #c62828 !important;
            border-left-color: #c62828 !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: #f8f9fa;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 20px;
            max-width: 600px;
        }

        .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: white !important;
            border: 1px solid #e2e8f0 !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.1) !important;
            transform: translateY(-1px) !important;
        }

        .calendar-today-schedule .schedule-item.completed {
            background: #f0f9ff !important;
            border-color: #22c55e !important;
        }

        .calendar-today-schedule .schedule-item.overdue {
            background: #fef2f2 !important;
            border-color: #ef4444 !important;
        }

        .calendar-today-schedule .schedule-item.pending {
            background: #fffbeb !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;
        }

        .calendar-today-schedule .schedule-time {
            font-weight: 600 !important;
            color: #374151 !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;
        }

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

        .calendar-today-schedule .schedule-medication-dosage {
            color: #6b7280 !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: #dcfce7 !important;
            color: #16a34a !important;
        }

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

        .calendar-today-schedule .schedule-status.status-pending {
            background: #fef3c7 !important;
            color: #d97706 !important;
        }
		
		/* Calendar More Items and Tooltip Styles */
.calendar-more-items {
    transition: all 0.2s ease;
}

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

.calendar-items-tooltip {
    position: absolute;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    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 white;
    filter: drop-shadow(0 -1px 1px rgba(0,0,0,0.1));
}

/* When tooltip is positioned below the trigger */
.calendar-items-tooltip.below:before {
    top: auto;
    bottom: -6px;
    border-bottom: none;
    border-top: 6px solid white;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
}

.calendar-items-tooltip .tooltip-header {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
    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;
}

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

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

.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;
}

.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;
}

/* Mobile adjustments for tooltip */
@media (max-width: 767px) {
    .calendar-items-tooltip {
        min-width: 200px;
        max-width: 300px;
        font-size: 12px;
    }
    
    .calendar-items-tooltip .tooltip-header {
        font-size: 13px;
    }
    
    /* Make tooltip items more touch-friendly on mobile */
    .calendar-items-tooltip .tooltip-item {
        padding: 8px 0;
        min-height: 36px;
    }
}

/* Animation for tooltip appearance */
@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calendar-items-tooltip.show {
    animation: tooltipFadeIn 0.2s ease forwards;
}

/* Ensure tooltip stays visible when hovering over it */
.calendar-items-tooltip:hover {
    display: block !important;
}

/* Style for empty tooltip */
.calendar-items-tooltip .no-items {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 8px 0;
}

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

        .family-modal-content {
            background: white;
            padding: 30px;
            border-radius: 12px;
            width: 90%;
            max-width: 400px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
        }

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

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

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

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

        .notification-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #ff6b6b;
            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: #333;
            margin: 0;
        }

        .notification-message {
            color: #666;
            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: #4facfe;
            color: white;
        }

        .notification-btn.primary:hover {
            background: #3d8bfd;
        }

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

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

        .notification-banner {
            position: fixed;
            top: 20px;
            right: 20px;
            background: white;
            border-radius: 8px;
            padding: 15px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            border-left: 4px solid #ff6b6b;
            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: #ff6b6b;
            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: #333;
            margin: 0 0 4px 0;
            font-size: 14px;
        }

        .banner-message {
            color: #666;
            font-size: 13px;
            margin: 0;
        }
		
		.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.notification-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}



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

        .empty-state h3 {
            margin-bottom: 10px;
            color: #333;
        }
		
		
		
		
		/* Compact Medication Cards - Single Line */
.medication-card-compact {
    background: white;
    border: 1px solid #e2e8f0;
    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.1);
    transform: translateY(-1px);
}

.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: #333;
    flex-shrink: 0;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

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

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

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

        .mobile-calendar-list {
            display: none;
            background: white;
            border-radius: 8px;
            overflow: hidden;
        }
        
        .mobile-calendar-day {
            border-bottom: 1px solid #e2e8f0;
            padding: 15px;
            background: white;
        }
        
        .mobile-calendar-day.today {
            background: linear-gradient(135deg, #007bff, #0056b3);
            color: white;
            border-bottom-color: #0056b3;
        }
        
        .mobile-calendar-day.other-month {
            background: #f8f9fa;
            color: #999;
        }
        
        .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: #666;
        }
        
        .mobile-day-number {
            font-size: 1.5rem;
            font-weight: 700;
        }
        
        .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: #f8f9fa;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            padding: 8px 10px;
            font-size: 0.85rem;
            border-left: 3px solid #1976d2;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .mobile-calendar-task.completed {
            background: #c8e6c9;
            border-left-color: #2e7d32;
            text-decoration: line-through;
            opacity: 0.8;
        }
        
        .mobile-calendar-task.overdue {
            background: #ffcdd2;
            border-left-color: #c62828;
        }
        
        .mobile-calendar-task.pending {
            background: #fff3e0;
            border-left-color: #f57c00;
        }
        
        .mobile-calendar-task.appointment {
            background: #f3e5f5;
            border-left-color: #7b1fa2;
        }
        
        .mobile-task-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        
        .mobile-task-time {
            font-weight: 600;
            font-size: 0.8rem;
        }
        
        .mobile-task-name {
            font-size: 0.85rem;
        }
        
        .mobile-task-checkbox {
            margin-left: 8px;
            width: 18px;
            height: 18px;
        }
        
        .mobile-no-tasks {
            color: #999;
            font-style: italic;
            font-size: 0.85rem;
        }

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

            .mobile-only {
                display: block;
            }

            /* 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) {
            .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;
            }
        }
    