/* ========================================
   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.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;
    color: #000000;
}

/* 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;
    color: #000000;
}

.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: 0;
    background: var(--ios-card-bg);
    border-radius: var(--ios-radius);
    box-shadow: var(--ios-shadow);
    overflow: hidden;
}

.children-activities-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 16px 12px 16px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--ios-separator);
}

.children-activities-section .section-header h2,
.children-activities-section .section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ios-text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.activities-container {
    padding: 12px;
}

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

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

.activity-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.activity-card:hover {
    background: var(--ios-hover-bg);
}

.activity-card:active {
    background: var(--ios-active-bg);
}

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

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

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

.activities-empty {
    text-align: center;
    padding: 24px 16px;
    color: var(--ios-text-secondary);
}

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

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

.floating-chat-btn {
    position: fixed;
    bottom: 32px;
    left: 300px;
    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;
    left: 300px;
    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;
    flex-shrink: 0;
    align-self: flex-start;
    overflow: hidden;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-avatar i {
    display: block;
    line-height: 1;
    font-size: 20px;
    color: #9b7bb8;
}

.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: #9b7bb8;
    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-action-btn.medical-mode-btn {
    background: #f5f5f7;
}

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

.chat-action-btn.medical-mode-btn.active {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A5A 100%);
    box-shadow: 0 2px 8px rgba(238, 90, 90, 0.4);
}

.chat-action-btn.medical-mode-btn.active .medical-icon {
    filter: brightness(0) invert(1);
}

.chat-action-btn.medical-mode-btn .medical-icon {
    width: 20px;
    height: 20px;
    transition: filter 0.2s ease;
}

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

.chat-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    height: 100%;
}

.welcome-message {
    background: #f5f5f7;
    border-radius: 18px;
    padding: 16px 24px;
    max-width: 280px;
}

.welcome-text {
    font-size: 16px;
    color: #1d1d1f;
    line-height: 1.5;
    display: block;
    text-align: center;
}

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

.message-bubble::selection {
    background: #007aff;
    color: #ffffff;
}

.message-bubble::-moz-selection {
    background: #007aff;
    color: #ffffff;
}

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

.chat-message.assistant .message-avatar .wilbur-mini-canvas {
    width: 40px;
    height: 40px;
}

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

.message-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}

.message-speaker-btn {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.message-speaker-btn i {
    transition: all 0.2s ease;
}

.message-speaker-btn:hover:not(.playing):not(.loading) {
    background: #047e4d;
    border-color: #047e4d;
    color: white;
}

.message-speaker-btn:active {
    transform: scale(0.9);
}

.message-speaker-btn.playing {
    background: #047e4d;
    border-color: #047e4d;
    color: white;
    animation: pulse-btn 1.5s infinite;
}

.message-speaker-btn.loading {
    background: #f59e0b;
    border-color: #f59e0b;
    color: white;
    animation: spin-btn 1s linear infinite;
}

.message-speaker-btn.error {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

@keyframes pulse-btn {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(4, 126, 77, 0.7);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(4, 126, 77, 0);
    }
}

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

.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: #ffffff;
    border-radius: var(--ios-radius);
    padding: 10px 16px;
    font-size: 15px;
    font-family: var(--ios-font);
    color: #1c1c1e;
    outline: none;
    -webkit-text-fill-color: #1c1c1e;
}

.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: 18px;
    }

    .children-activities-section .section-header {
        padding: 14px 16px 12px 16px;
    }

    .activity-card {
        padding: 16px;
    }

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

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

@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 {
        border-radius: 16px;
    }

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

    .children-activities-section .section-header {
        padding: 12px 14px 10px 14px;
    }

    .activities-container {
        padding: 10px;
    }

    .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: 20px 12px;
    }

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

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

    .upcoming-events-section {
        border-radius: 16px;
    }

    .upcoming-events-section .section-header {
        padding: 12px 14px 10px 14px;
    }

    .upcoming-container {
        padding: 10px;
    }

    .stat-card {
        padding: 12px;
    }

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

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


/* ========================================
   MEDICAL MODE MODAL
   ======================================== */

.medical-mode-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.medical-mode-modal.active {
    display: flex;
}

.medical-mode-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 420px;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: medicalModalSlideIn 0.3s ease;
}

@keyframes medicalModalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.medical-mode-modal-header {
    padding: 24px 24px 16px;
    text-align: center;
    background: linear-gradient(135deg, #FFF5F5 0%, #FFF 100%);
    border-bottom: 1px solid rgba(238, 90, 90, 0.1);
}

.medical-modal-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.medical-mode-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1d1d1f;
}

.medical-mode-modal-body {
    padding: 20px 24px;
}

.medical-mode-modal-body p {
    margin: 0 0 16px;
    color: #3c3c43;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.medical-mode-modal-body ul {
    margin: 0 0 16px;
    padding-left: 20px;
}

.medical-mode-modal-body li {
    color: #3c3c43;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.medical-disclaimer-box {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.8125rem;
    color: #92400E;
    line-height: 1.5;
}

.medical-mode-modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dont-show-again {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.8125rem;
    color: #6e6e73;
}

.dont-show-again input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--ios-primary);
}

.medical-mode-modal-footer .btn-primary {
    padding: 12px 28px;
    font-size: 0.9375rem;
    border-radius: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--ios-primary), var(--ios-indigo));
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(28, 156, 252, 0.3);
    transition: all 0.2s ease;
}

.medical-mode-modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(28, 156, 252, 0.4);
}

.medical-mode-modal-footer .btn-primary:active {
    transform: translateY(0);
}

/* ========================================
   CHILD PROFILE SECTION
   ======================================== */

.child-profile-section {
    margin-bottom: 20px;
}

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

.child-profile-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    color: var(--ios-text-secondary);
}

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

.child-profile-empty {
    text-align: center;
    padding: 24px;
    color: var(--ios-text-secondary);
}

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

.child-profile-empty p {
    margin: 0 0 16px 0;
    font-size: 14px;
}

.add-child-link {
    color: var(--ios-primary);
    text-decoration: none;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.add-child-link:hover {
    background: rgba(0, 122, 255, 0.1);
}

.child-profile-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.child-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.child-initials {
    color: white;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

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

.child-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--ios-text-primary);
    margin: 0 0 4px 0;
}

.child-switcher {
    margin-top: 4px;
}

.child-select {
    padding: 6px 24px 6px 10px;
    border: 1px solid var(--ios-separator);
    border-radius: 8px;
    background: var(--ios-bg);
    font-size: 13px;
    color: var(--ios-text-secondary);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238E8E93' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.child-stars {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.stars-total {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stars-emoji {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.4));
}

.stars-count {
    font-size: 28px;
    font-weight: 800;
    color: #FBBF24;
    letter-spacing: -1px;
}

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

.stars-weekly {
    display: flex;
    align-items: center;
    gap: 4px;
}

.weekly-count {
    font-size: 16px;
    font-weight: 700;
    color: var(--ios-green);
}

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

/* ========================================
   QUICK REWARDS SECTION
   ======================================== */

.quick-rewards-section {
    margin-bottom: 20px;
}

.quick-rewards-section .section-header {
    margin-bottom: 12px;
}

.quick-rewards-section .section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.rewards-buttons-grid {
    display: flex;
    gap: 10px;
}

@media (max-width: 600px) {
    .rewards-buttons-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

.reward-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 10px;
    background: var(--ios-card-bg);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--ios-shadow);
}

.reward-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--ios-shadow-lg);
    background: #FFFBEB;
}

.reward-btn:active {
    transform: translateY(0);
    background: #FEF3C7;
}

.reward-btn.awarding {
    opacity: 0.7;
    pointer-events: none;
}

.reward-btn-icon {
    font-size: 24px;
    line-height: 1;
}

.reward-btn-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--ios-text-secondary);
    text-align: center;
}

/* ========================================
   DASHBOARD GRID (Activities & Upcoming)
   ======================================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ========================================
   UPCOMING EVENTS SECTION
   ======================================== */

.upcoming-events-section {
    margin-bottom: 0;
    background: var(--ios-card-bg);
    border-radius: var(--ios-radius);
    box-shadow: var(--ios-shadow);
    overflow: hidden;
}

.upcoming-events-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 16px 12px 16px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--ios-separator);
}

.upcoming-events-section .section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ios-text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upcoming-container {
    padding: 12px;
    max-height: 350px;
    overflow-y: auto;
}

.upcoming-day-group {
    margin-bottom: 12px;
}

.upcoming-day-group:last-child {
    margin-bottom: 0;
}

.upcoming-day-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--ios-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    padding: 0 4px;
}

.upcoming-event-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upcoming-event-card:hover {
    background: var(--ios-hover-bg);
}

.upcoming-event-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: transparent;
    flex-shrink: 0;
}

.upcoming-event-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

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

.upcoming-event-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ios-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.upcoming-event-time {
    font-size: 11px;
    color: var(--ios-text-secondary);
    margin-top: 2px;
}

.upcoming-empty {
    text-align: center;
    padding: 24px 16px;
    color: var(--ios-text-secondary);
}

.upcoming-empty i {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
    color: var(--ios-text-tertiary);
}

.upcoming-empty p {
    margin: 0;
    font-size: 13px;
}

/* ========================================
   ACTIVITY ICONS
   ======================================== */

.activity-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* ========================================
   CUSTOM REWARD MODAL
   ======================================== */

.custom-reward-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.custom-reward-modal.active {
    display: flex;
}

.custom-reward-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: medicalModalSlideIn 0.3s ease;
}

.custom-reward-modal-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--ios-separator);
}

.custom-reward-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--ios-text-primary);
}

.close-modal-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--ios-bg);
    color: var(--ios-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-modal-btn:hover {
    background: var(--ios-active-bg);
}

.custom-reward-modal-body {
    padding: 24px;
}

.custom-reward-modal-body label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ios-text-primary);
    margin-bottom: 8px;
}

.custom-reward-modal-body input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--ios-separator);
    border-radius: 12px;
    font-size: 15px;
    color: var(--ios-text-primary);
    background: var(--ios-bg);
    transition: all 0.2s ease;
}

.custom-reward-modal-body input:focus {
    outline: none;
    border-color: var(--ios-primary);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.custom-reward-modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.custom-reward-modal-footer .btn-cancel {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    background: var(--ios-bg);
    color: var(--ios-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-reward-modal-footer .btn-cancel:hover {
    background: var(--ios-active-bg);
}

.custom-reward-modal-footer .btn-primary {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.custom-reward-modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

/* ========================================
   ADD CHILD MODAL
   ======================================== */

.add-child-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.add-child-modal.active {
    display: flex;
}

.add-child-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: medicalModalSlideIn 0.3s ease;
    position: relative;
}

.add-child-modal-content .close-modal-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
}

.add-child-modal-header {
    padding: 32px 24px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #fff 100%);
}

.add-child-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.add-child-icon i {
    font-size: 28px;
    color: white;
}

.add-child-modal-header h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--ios-text-primary);
}

.add-child-modal-header p {
    margin: 0;
    font-size: 14px;
    color: var(--ios-text-secondary);
    line-height: 1.5;
}

.add-child-modal-body {
    padding: 24px;
}

.add-child-modal-body input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--ios-separator);
    border-radius: 12px;
    font-size: 16px;
    color: var(--ios-text-primary);
    background: var(--ios-bg);
    transition: all 0.2s ease;
    text-align: center;
}

.add-child-modal-body input:focus {
    outline: none;
    border-color: var(--ios-primary);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.add-child-modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.add-child-modal-footer .btn-cancel {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    background: var(--ios-bg);
    color: var(--ios-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-child-modal-footer .btn-cancel:hover {
    background: var(--ios-active-bg);
}

.add-child-modal-footer .btn-primary {
    padding: 12px 32px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.add-child-modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.add-child-modal-footer .btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   iOS EVENT PILL CARDS (Dashboard)
   Same colored capsule style as Agenda
   ======================================== */

.ios-event-pill {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

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

.ios-event-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.ios-event-pill:active {
    transform: scale(0.98);
}

.ios-event-pill.therapy {
    background: linear-gradient(135deg, #007AFF 0%, #5AC8FA 100%);
    color: white;
}

.ios-event-pill.meal {
    background: linear-gradient(135deg, #34C759 0%, #30D158 100%);
    color: white;
}

.ios-event-pill.medication {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    color: white;
}

.ios-event-pill.appointment {
    background: linear-gradient(135deg, #FF9500 0%, #FFCC00 100%);
    color: white;
}

.ios-event-pill.task {
    background: linear-gradient(135deg, #FFAB00 0%, #FFD54F 100%);
    color: white;
}

.ios-event-pill.reminder {
    background: linear-gradient(135deg, #FF2D55 0%, #FF3B30 100%);
    color: white;
}

.ios-event-pill.other {
    background: linear-gradient(135deg, #AF52DE 0%, #BF5AF2 100%);
    color: white;
}

.ios-event-pill.relax {
    background: linear-gradient(135deg, #AF52DE 0%, #BF5AF2 100%);
    color: white;
}

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

.ios-event-pill-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px 0;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ios-event-pill-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    opacity: 0.9;
}

.ios-event-pill-contact {
    color: rgba(255, 255, 255, 0.85);
}

.ios-event-pill-time {
    font-weight: 600;
}

@media (max-width: 767px) {
    .ios-event-pill {
        padding: 12px 14px;
        border-radius: 12px;
    }

    .ios-event-pill-title {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .ios-event-pill-meta {
        font-size: 12px;
        gap: 6px;
    }
}

@media (max-width: 400px) {
    .ios-event-pill {
        padding: 10px 12px;
        border-radius: 10px;
        margin-bottom: 6px;
    }

    .ios-event-pill-title {
        font-size: 13px;
    }

    .ios-event-pill-meta {
        font-size: 11px;
    }
}

.ios-event-pill.compact {
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 6px;
}

.ios-event-pill.compact .ios-event-pill-title {
    font-size: 13px;
    margin-bottom: 2px;
}

.ios-event-pill.compact .ios-event-pill-meta {
    font-size: 11px;
    gap: 6px;
}

@media (max-width: 767px) {
    .ios-event-pill.compact {
        padding: 8px 12px;
        border-radius: 10px;
    }

    .ios-event-pill.compact .ios-event-pill-title {
        font-size: 12px;
    }

    .ios-event-pill.compact .ios-event-pill-meta {
        font-size: 10px;
    }
}
