/* ========================================
   iOS 28 Dashboard Styles
   Uses design-system.css variables
   ======================================== */

:root {
  color-scheme: light only;
}

body.dashboard-page {
    font-family: var(--ios-font);
    background: transparent;
    color: var(--ios-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.dashboard-page .menu-toggle {
    display: none !important;
}

/* Main Dashboard Layout */
.dashboard-main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: transparent;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .dashboard-main {
        margin-left: 280px;
        width: calc(100% - 280px);
    }
}

/* iOS Container */
.ios-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 100px;
}

@media (min-width: 1200px) {
    .ios-container {
        padding: 32px 48px;
        padding-bottom: 100px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .ios-container {
        padding: 24px 32px;
        padding-bottom: 100px;
    }
}

@media (max-width: 767px) {
    .ios-container {
        padding: 16px;
        padding-bottom: 100px;
    }
}

/* iOS Header Card */
.ios-header-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--ios-radius-lg, 24px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

@media (min-width: 1200px) {
    .ios-header-card {
        padding: 24px 32px;
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .ios-header-card {
        padding: 14px 16px;
        gap: 12px;
        border-radius: 20px;
        margin-bottom: 16px;
    }
}

.ios-menu-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f2f2f7;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8E8E93;
    font-size: 22px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ios-menu-btn:hover {
    background: #E5E5EA;
}

.ios-menu-btn:active {
    transform: scale(0.95);
}

@media (min-width: 769px) {
    .ios-menu-btn {
        display: none;
    }
}

.ios-header-content {
    flex: 1;
    min-width: 0;
}

.ios-header-title {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin: 0;
    letter-spacing: -0.3px;
}

.ios-header-subtitle {
    font-size: 14px;
    color: #8E8E93;
    margin: 4px 0 0 0;
}

@media (min-width: 1200px) {
    .ios-header-title {
        font-size: 28px;
    }
    .ios-header-subtitle {
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .ios-header-title {
        font-size: 20px;
    }
    .ios-header-subtitle {
        font-size: 13px;
    }
}

.ios-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.ios-date-display {
    text-align: right;
}

.ios-date {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    margin: 0;
}

.ios-time {
    font-size: 13px;
    color: #8E8E93;
    margin: 2px 0 0 0;
}

@media (max-width: 600px) {
    .ios-date-display {
        display: none;
    }
}

.ios-heart-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF3B30 0%, #FF2D55 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 45, 85, 0.3);
    text-decoration: none;
}

.ios-heart-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 45, 85, 0.4);
}

.ios-heart-btn:active {
    transform: scale(0.95);
}

.greeting-text {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.greeting-subtitle {
    font-size: 16px;
    color: var(--ios-text-secondary);
    margin: 0;
    font-weight: 500;
}

.date-section {
    text-align: right;
}

.current-date {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--ios-text-primary);
}

.current-time {
    font-size: 14px;
    color: var(--ios-text-secondary);
    margin: 0;
}

/* Quick Stats */
.food-world-dashboard {
    margin-bottom: 24px;
}

.food-world-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 600px) {
    .food-world-cards {
        grid-template-columns: 1fr;
    }
}

.food-dashboard-card {
    background: var(--ios-card-bg);
    border-radius: var(--ios-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--ios-shadow);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.food-dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.food-dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ios-shadow-lg);
    border-color: var(--card-color);
}

.food-dashboard-card:hover::before {
    opacity: 1;
}

.food-dashboard-card.next-meal-card {
    --card-color: #06B6D4;
    --card-gradient: linear-gradient(90deg, #06B6D4, #3B82F6);
}

.food-dashboard-card.rewards-card {
    --card-color: #FBBF24;
    --card-gradient: linear-gradient(90deg, #FBBF24, #F59E0B);
}

.food-dashboard-icon {
    position: relative;
    flex-shrink: 0;
}

.food-dash-emoji {
    font-size: 40px;
    line-height: 1;
    display: block;
}

.food-dash-emoji.star-emoji {
    filter: drop-shadow(0 4px 8px rgba(251, 191, 36, 0.4));
}

.rewards-dash-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

.food-dashboard-info {
    flex: 1;
    min-width: 0;
}

.food-dashboard-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ios-text-primary);
    margin: 0 0 4px 0;
}

.food-dashboard-subtitle {
    font-size: 13px;
    color: var(--ios-text-secondary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.food-dashboard-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ios-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ios-text-secondary);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.food-dashboard-card:hover .food-dashboard-arrow {
    background: var(--card-color);
    color: white;
    transform: translateX(4px);
}

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

.quick-stats.single-stat {
    display: flex;
    justify-content: flex-start;
}

.quick-stats.single-stat .stat-card {
    max-width: 280px;
}

.stat-card {
    background: var(--ios-card-bg);
    border-radius: var(--ios-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--ios-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ios-shadow-lg);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--ios-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-icon.events {
    background: linear-gradient(135deg, var(--ios-purple) 0%, #764ba2 100%);
    color: white;
}

.stat-icon.upcoming {
    background: linear-gradient(135deg, var(--ios-pink) 0%, var(--ios-red) 100%);
    color: white;
}

.stat-icon.contacts {
    background: linear-gradient(135deg, var(--ios-primary) 0%, var(--ios-teal) 100%);
    color: white;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--ios-text-secondary);
    margin: 0 0 4px 0;
    font-weight: 500;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

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

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.3px;
}

.view-all-link {
    font-size: 15px;
    color: var(--ios-primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.view-all-link:hover {
    opacity: 0.7;
}

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

.events-container {
    background: var(--ios-card-bg);
    border-radius: var(--ios-radius);
    padding: 20px;
    box-shadow: var(--ios-shadow);
}

.event-card {
    background: var(--ios-bg);
    border-radius: var(--ios-radius-sm);
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
    cursor: pointer;
    border-left: 4px solid transparent;
}

.event-card:last-child {
    margin-bottom: 0;
}

.event-card:hover {
    background: var(--ios-active-bg);
    border-left-color: var(--ios-primary);
}

.event-time {
    font-size: 13px;
    font-weight: 600;
    color: var(--ios-primary);
    min-width: 60px;
}

.event-info {
    flex: 1;
}

.event-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.recurrence-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(28, 156, 252, 0.1);
    color: var(--ios-primary);
    border-radius: var(--ios-radius-sm);
    font-size: 11px;
    font-weight: 500;
}

.recurrence-badge i {
    font-size: 10px;
}

.event-details {
    font-size: 14px;
    color: var(--ios-text-secondary);
    margin: 0;
}

.event-type-badge {
    padding: 4px 12px;
    border-radius: var(--ios-radius);
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.event-type-badge.appointment {
    background: rgba(52, 199, 89, 0.15);
    color: var(--ios-green);
}

.event-type-badge.medication {
    background: rgba(255, 45, 85, 0.15);
    color: var(--ios-pink);
}

.event-type-badge.task {
    background: rgba(255, 149, 0, 0.15);
    color: var(--ios-orange);
}

.empty-state {
    text-align: center;
    padding: 32px 16px;
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--ios-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--ios-text-secondary);
}

.empty-text {
    font-size: 16px;
    color: var(--ios-text-secondary);
    margin: 0 0 16px 0;
}

.empty-action {
    display: inline-block;
    padding: 10px 20px;
    background: var(--ios-primary);
    color: white;
    border-radius: var(--ios-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
}

.empty-action:hover {
    transform: scale(1.05);
    box-shadow: var(--ios-shadow-lg);
}

.children-activities-section {
    margin-bottom: 24px;
}

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

.children-activities-section .section-header h2,
.children-activities-section .section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ios-text-primary);
    margin: 0;
}

.activities-container {
    background: var(--ios-card-bg);
    border-radius: var(--ios-radius);
    padding: 16px;
    box-shadow: var(--ios-shadow);
}

.activities-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    color: var(--ios-text-secondary);
    font-size: 14px;
}

.activities-loading i {
    animation: spin 1s linear infinite;
}

.activity-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--ios-bg);
    border-radius: var(--ios-radius-sm);
    margin-bottom: 8px;
    border-left: 4px solid var(--ios-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.activity-card .event-type-badge {
    flex-shrink: 0;
    margin-left: auto;
}

.activity-card:last-child {
    margin-bottom: 0;
}

.activity-card:hover {
    background: var(--ios-hover-bg);
    transform: translateX(4px);
}

.activity-card:active {
    transform: translateX(2px);
}

.activity-time {
    font-size: 13px;
    font-weight: 600;
    color: var(--ios-primary);
    min-width: 55px;
    flex-shrink: 0;
}

.activity-info {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ios-text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-child {
    font-size: 13px;
    color: var(--ios-text-secondary);
}

.activities-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--ios-text-secondary);
    background: var(--ios-card-bg);
    border-radius: var(--ios-radius);
    box-shadow: var(--ios-shadow);
}

.activities-empty i {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
    color: var(--ios-text-tertiary);
}

.activities-empty p {
    margin: 0;
    font-size: 14px;
}

.floating-chat-btn {
    position: fixed;
    bottom: 32px;
    right: 110px;
    background: linear-gradient(135deg, var(--ios-primary) 0%, var(--ios-purple) 100%);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(28, 156, 252, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 900;
    font-family: var(--ios-font);
}

.floating-chat-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 40px rgba(28, 156, 252, 0.4);
}

.floating-chat-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.floating-chat-btn i {
    font-size: 20px;
}

.chat-btn-label {
    font-weight: 600;
}

.floating-chat-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(100px);
}

.chat-widget {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 380px;
    height: 500px;
    background: var(--ios-card-bg);
    border-radius: var(--ios-radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 900;
    overflow: hidden;
}

.chat-widget.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.chat-widget.minimized {
    height: 64px;
}

.chat-widget-header {
    background: #ffffff;
    color: #1d1d1f;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    border-bottom: 1px solid #e5e5ea;
}

.chat-header-info {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

.chat-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    border-radius: 50%;
    background: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    color: #1C9CFC;
    align-self: flex-start;
}

.chat-avatar i {
    display: block;
    line-height: 1;
}

.chat-header-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 42px;
}

.chat-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    color: #1d1d1f;
    display: block;
}

.chat-status {
    font-size: 13px;
    margin: 0;
    padding: 0;
    font-weight: 500;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    line-height: 1;
    color: #34c759;
    flex-wrap: nowrap;
}

.chat-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34c759;
    box-shadow: 0 0 6px rgba(52, 199, 89, 0.5);
    animation: pulse-status 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-status {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 6px rgba(52, 199, 89, 0.5);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 10px rgba(52, 199, 89, 0.7);
    }
}

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

.chat-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f5f5f7;
    color: #6e6e73;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chat-action-btn:hover {
    background: #e5e5ea;
}

.chat-action-btn:active {
    transform: scale(0.9);
}

#ttsSpeakerBtn {
    color: var(--ios-green);
    background: rgba(52, 199, 89, 0.15);
}

#ttsSpeakerBtn:hover {
    background: rgba(52, 199, 89, 0.25);
}

#ttsSpeakerBtn .bi-volume-mute-fill {
    color: var(--ios-text-secondary);
}

.chat-widget-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: var(--ios-bg);
}

.chat-welcome {
    text-align: center;
    padding: 32px 0;
}

.welcome-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ios-primary) 0%, var(--ios-purple) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.chat-welcome h4 {
    font-size: 18px;
    margin: 0 0 8px 0;
    font-weight: 600;
    color: var(--ios-text-primary);
}

.chat-welcome p {
    font-size: 14px;
    color: var(--ios-text-secondary);
    margin: 0;
    line-height: 1.5;
}

.chat-message {
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.message-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: var(--ios-radius);
    font-size: 15px;
    line-height: 1.4;
}

.chat-message.assistant .message-bubble {
    background: #ffffff;
    color: #1d1d1f;
    border-bottom-left-radius: 4px;
    border: 1px solid #e0e0e0;
}

.chat-message.assistant .message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #86868b;
    font-size: 1.1rem;
}

.wilbur-welcome {
    margin-top: auto;
}

.wilbur-welcome .message-bubble {
    font-weight: 500;
}

.chat-message.user .message-bubble {
    background: var(--ios-primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 11px;
    color: var(--ios-text-secondary);
    margin-top: 4px;
    text-align: right;
}

.chat-widget-input {
    padding: 16px;
    background: var(--ios-card-bg);
    border-top: 1px solid var(--ios-separator);
    flex-shrink: 0;
}

.chat-input-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-mic-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--ios-primary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.chat-mic-btn:hover {
    transform: scale(1.1);
    background: rgba(28, 156, 252, 0.1);
}

.chat-mic-btn:active {
    transform: scale(0.95);
}

.chat-mic-btn.recording {
    color: var(--ios-red);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-input {
    flex: 1;
    border: none;
    background: var(--ios-bg);
    border-radius: var(--ios-radius);
    padding: 10px 16px;
    font-size: 15px;
    font-family: var(--ios-font);
    color: var(--ios-text-primary);
    outline: none;
}

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

.chat-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--ios-primary);
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.chat-send-btn:hover {
    transform: scale(1.1);
}

.chat-send-btn:active {
    transform: scale(0.95);
}

.chat-send-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ios-text-secondary);
    animation: typing 1.4s infinite;
}

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

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .dashboard-main {
        padding: 16px;
    }

    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    .date-section {
        text-align: left;
    }

    .quick-stats {
        grid-template-columns: 1fr;
    }

    .children-activities-section .section-header h2,
    .children-activities-section .section-title {
        font-size: 22px;
    }

    .activities-container {
        padding: 20px;
    }

    .activity-card {
        padding: 16px;
    }

    .chat-widget {
        width: calc(100vw - 32px);
        right: 16px;
        bottom: 16px;
    }

    .floating-chat-btn {
        bottom: 16px;
        right: 90px;
    }
}

@media (max-width: 480px) {
    .menu-toggle-btn {
        display: flex !important;
    }

    .greeting-text {
        font-size: 24px;
    }

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

    .children-activities-section .section-header h2,
    .children-activities-section .section-title {
        font-size: 18px;
    }

    .chat-widget {
        height: calc(100vh - 100px);
    }
}

@media (max-width: 400px) {
    .dashboard-main {
        padding: 12px;
    }

    .greeting-text {
        font-size: 22px;
    }

    .children-activities-section .section-header h2,
    .children-activities-section .section-title {
        font-size: 16px;
    }

    .children-activities-section .section-header {
        margin-bottom: 12px;
    }

    .activities-container {
        padding: 12px;
        border-radius: 12px;
    }

    .activity-card {
        padding: 10px;
        gap: 10px;
        border-radius: 10px;
    }

    .activity-time {
        font-size: 12px;
        min-width: 50px;
    }

    .activity-title {
        font-size: 14px;
    }

    .activity-child {
        font-size: 12px;
    }

    .activities-empty {
        padding: 24px 12px;
        border-radius: 12px;
    }

    .activities-empty i {
        font-size: 32px;
        margin-bottom: 8px;
    }

    .activities-empty p {
        font-size: 13px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-value {
        font-size: 24px;
    }

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