﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/* ============================================
   iOS Native Design System
   Based on Apple Human Interface Guidelines
   ============================================ */

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--ios-background-primary);
    color: var(--ios-label);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Disable text size adjustment */
    -webkit-text-size-adjust: 100%;
    /* Smooth scrolling */
    -webkit-overflow-scrolling: touch;
    /* Prevent overscroll bounce on main body */
    overscroll-behavior: none;
}

:root {
    /* ============================================
       iOS System Colors (Light Mode)
       ============================================ */
    
    /* Labels */
    --ios-label: #000000;
    --ios-label-secondary: rgba(60, 60, 67, 0.6);
    --ios-label-tertiary: rgba(60, 60, 67, 0.3);
    --ios-label-quaternary: rgba(60, 60, 67, 0.18);
    
    /* Backgrounds - iOS Grouped Style */
    --ios-background-primary: #F2F2F7;
    --ios-background-secondary: #FFFFFF;
    --ios-background-tertiary: #F2F2F7;
    --ios-background-grouped: #FFFFFF;
    --ios-background-grouped-secondary: #F2F2F7;
    
    /* Fills */
    --ios-fill-primary: rgba(120, 120, 128, 0.2);
    --ios-fill-secondary: rgba(120, 120, 128, 0.16);
    --ios-fill-tertiary: rgba(120, 120, 128, 0.12);
    --ios-fill-quaternary: rgba(120, 120, 128, 0.08);
    
    /* Separators */
    --ios-separator: rgba(60, 60, 67, 0.29);
    --ios-separator-opaque: #C6C6C8;
    
    /* iOS Tint Colors */
    --ios-blue: #007AFF;
    --ios-green: #34C759;
    --ios-indigo: #5856D6;
    --ios-orange: #FF9500;
    --ios-pink: #FF2D55;
    --ios-purple: #AF52DE;
    --ios-red: #FF3B30;
    --ios-teal: #5AC8FA;
    --ios-yellow: #FFCC00;
    
    /* App Theme Colors - Using iOS palette */
    --app-tint: #FF3B30;
    --app-tint-secondary: #AF52DE;
    --app-success: #34C759;
    --app-danger: #FF3B30;
    
    /* Legacy mapping for backwards compatibility */
    --text-primary: var(--ios-label);
    --text-secondary: var(--ios-label-secondary);
    --background-primary: var(--ios-background-primary);
    --background-secondary: var(--ios-background-secondary);
    --background-tertiary: var(--ios-background-tertiary);
    --primary-mouseover: var(--ios-fill-quaternary);
    --primary-selected: var(--ios-fill-secondary);
    --button-primary: var(--app-tint);
    --button-secondary: var(--app-tint-secondary);
    --button-third: var(--app-success);
    --button-danger: var(--app-danger);
    --accent-primary: var(--app-tint);
    --accent-secondary: var(--ios-purple);
    --accent-success: var(--app-success);
    --accent-danger: var(--app-danger);
    --accent-muted: var(--ios-label-secondary);
    --border-color: var(--ios-separator);
    --border-color-strong: var(--ios-separator-opaque);
    
    /* iOS Spacing & Sizing */
    --ios-spacing-xs: 4px;
    --ios-spacing-sm: 8px;
    --ios-spacing-md: 16px;
    --ios-spacing-lg: 20px;
    --ios-spacing-xl: 24px;
    
    /* iOS Corner Radii */
    --ios-radius-sm: 8px;
    --ios-radius-md: 10px;
    --ios-radius-lg: 12px;
    --ios-radius-xl: 16px;
    --ios-radius-full: 9999px;
    
    /* Safe Areas */
    --safe-area-inset-top: env(safe-area-inset-top, 0px);
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-inset-left: env(safe-area-inset-left, 0px);
    --safe-area-inset-right: env(safe-area-inset-right, 0px);
    
    /* iOS Tab Bar */
    --ios-tab-bar-height: 49px;
    --ios-tab-bar-height-safe: calc(49px + var(--safe-area-inset-bottom));
    
    /* iOS Navigation Bar */
    --ios-nav-bar-height: 44px;
    --ios-large-title-height: 96px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --ios-label: #FFFFFF;
        --ios-label-secondary: rgba(235, 235, 245, 0.6);
        --ios-label-tertiary: rgba(235, 235, 245, 0.3);
        --ios-label-quaternary: rgba(235, 235, 245, 0.18);
        
        --ios-background-primary: #000000;
        --ios-background-secondary: #1C1C1E;
        --ios-background-tertiary: #2C2C2E;
        --ios-background-grouped: #1C1C1E;
        --ios-background-grouped-secondary: #2C2C2E;
        
        --ios-fill-primary: rgba(120, 120, 128, 0.36);
        --ios-fill-secondary: rgba(120, 120, 128, 0.32);
        --ios-fill-tertiary: rgba(120, 120, 128, 0.24);
        --ios-fill-quaternary: rgba(120, 120, 128, 0.18);
        
        --ios-separator: rgba(84, 84, 88, 0.6);
        --ios-separator-opaque: #38383A;
    }
}

/* ============================================
   iOS-Style Buttons
   ============================================ */

.btn-primary {
    color: #FFFFFF !important;
    font-weight: 600 !important;
    font-size: 17px !important;
    background-color: var(--ios-blue) !important;
    border: none !important;
    border-radius: var(--ios-radius-md) !important;
    padding: 12px 20px !important;
    transition: all 0.15s ease !important;
    -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover, .btn-primary:active {
    opacity: 0.8 !important;
    transform: scale(0.98);
}

.btn-success {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 17px;
    background-color: var(--ios-green) !important;
    border: none;
    border-radius: var(--ios-radius-md);
    padding: 12px 20px;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.btn-success:hover, .btn-success:active {
    opacity: 0.8;
    transform: scale(0.98);
}

.btn-danger {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 17px;
    background-color: var(--ios-red) !important;
    border: none !important;
    border-radius: var(--ios-radius-md) !important;
    padding: 12px 20px !important;
    transition: all 0.15s ease !important;
    -webkit-tap-highlight-color: transparent;
}
.btn-danger:hover, .btn-danger:active {
    opacity: 0.8;
    transform: scale(0.98);
}

.btn-secondary {
    color: var(--ios-blue);
    font-weight: 600;
    font-size: 17px;
    background-color: var(--ios-fill-secondary);
    border: none;
    border-radius: var(--ios-radius-md);
    padding: 12px 20px;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.btn-secondary:hover, .btn-secondary:active {
    opacity: 0.8;
    transform: scale(0.98);
}

/* iOS Link Button Style */
.btn-link {
    color: var(--ios-blue);
    font-weight: 400;
    font-size: 17px;
    background: none;
    border: none;
    padding: 0;
    text-decoration: none;
}
.btn-link:hover {
    opacity: 0.6;
}

/* ============================================
   iOS-Style Cards (Grouped Table View Style)
   ============================================ */

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: var(--ios-background-secondary);
    background-clip: border-box;
    border: none;
    border-radius: var(--ios-radius-lg);
    margin-top: var(--ios-spacing-sm);
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    /* iOS-style subtle shadow */
    box-shadow: 0 0 0 0.5px var(--ios-separator),
                0 2px 8px rgba(0, 0, 0, 0.08);
}
.card:active {
    background-color: var(--ios-fill-quaternary);
    transform: scale(0.98);
}
.card:hover {
    /* Remove hover effects for mobile-first design */
    background-color: var(--ios-background-secondary);
}
.card .card-body {
    padding: var(--ios-spacing-md);
}
.card .card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--ios-label);
    margin-bottom: var(--ios-spacing-xs);
}
.card .card-subtitle {
    font-size: 15px;
    color: var(--ios-label-secondary);
}
.card .card-text {
    font-size: 15px;
    color: var(--ios-label-tertiary);
}
h1:focus {
    outline: none;
}

/* ============================================
   iOS-Style Form Controls
   ============================================ */

input[type=checkbox] {
    width: 22px;
    height: 22px;
    background-color: var(--ios-background-secondary);
    border: 2px solid var(--ios-separator-opaque);
    margin-right: var(--ios-spacing-md);
    border-radius: var(--ios-radius-full);
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}
input[type=checkbox] + label {
    padding-top: 2px;
    font-size: 17px;
}
input[type=checkbox]:checked {
    background-color: var(--ios-green);
    border-color: var(--ios-green);
}
input[type=checkbox]:active {
    transform: scale(0.95);
}

/* iOS-style text inputs */
input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=search],
textarea,
select {
    font-family: inherit;
    font-size: 17px;
    padding: 11px 16px;
    background-color: var(--ios-background-secondary);
    border: none;
    border-radius: var(--ios-radius-md);
    color: var(--ios-label);
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}
input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus,
input[type=number]:focus,
input[type=search]:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.2);
}

/* Placeholder styling */
::placeholder {
    color: var(--ios-label-tertiary);
}

a, .btn-link {
    color: var(--ios-blue);
    transition: opacity 0.15s ease;
    text-decoration: none;
}
a:hover, .btn-link:hover {
    color: var(--ios-blue);
    opacity: 0.6;
}

.btn-secondary {
    color: var(--ios-blue);
    font-weight: 600;
    background-color: var(--ios-fill-secondary);
    border: none;
    border-radius: var(--ios-radius-md);
    padding: 12px 20px;
}

.content {
    padding-top: 0;
    padding-left: var(--ios-spacing-md);
    padding-right: var(--ios-spacing-md);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* The Close Button - iOS Style */
.close-nbc {
    color: var(--ios-label-secondary);
    font-size: 17px;
    font-weight: 400;
    transition: opacity 0.15s ease;
    background: none;
    border: none;
    padding: 8px;
}

.close-nbc:hover,
.close-nbc:focus {
    opacity: 0.6;
    text-decoration: none;
    cursor: pointer;
}

/* ============================================
   iOS-Style List Items
   ============================================ */

.nbc-list-item {
    background-color: var(--ios-background-secondary);
    border-bottom: 0.5px solid var(--ios-separator);
    margin: 0;
    padding: var(--ios-spacing-md);
    transition: background-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.nbc-list-item p {
    font-weight: 400;
    font-size: 17px;
    margin: 0;
}

.nbc-list-item:active {
    background-color: var(--ios-fill-tertiary);
}

.nbc-list-item:first-child {
    border-top-left-radius: var(--ios-radius-lg);
    border-top-right-radius: var(--ios-radius-lg);
}

.nbc-list-item:last-child {
    border-bottom-left-radius: var(--ios-radius-lg);
    border-bottom-right-radius: var(--ios-radius-lg);
    border-bottom: none;
}

/* iOS Grouped List Container */
.ios-list-group {
    background-color: var(--ios-background-secondary);
    border-radius: var(--ios-radius-lg);
    overflow: hidden;
    margin: var(--ios-spacing-lg) 0;
}

/* iOS Section Header */
.ios-section-header {
    font-size: 13px;
    font-weight: 400;
    color: var(--ios-label-secondary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: var(--ios-spacing-sm) var(--ios-spacing-md);
    padding-top: var(--ios-spacing-lg);
}

/* iOS Section Footer */
.ios-section-footer {
    font-size: 13px;
    color: var(--ios-label-secondary);
    padding: var(--ios-spacing-sm) var(--ios-spacing-md);
}

.no-select {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
}

/* ============================================
   iOS Large Title Navigation
   ============================================ */

.ios-page-header {
    padding: var(--ios-spacing-md);
    padding-top: calc(var(--safe-area-inset-top) + var(--ios-spacing-md));
    background-color: var(--ios-background-primary);
}

.ios-large-title {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 0.37px;
    color: var(--ios-label);
    margin: 0;
    padding: 0;
}

.ios-navigation-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--ios-label);
    text-align: center;
}

/* iOS Add Button (Navigation Bar Style) */
.ios-add-button {
    display: flex;
    align-items: center;
    gap: var(--ios-spacing-xs);
    color: var(--ios-blue);
    font-size: 17px;
    font-weight: 400;
    background: none;
    border: none;
    padding: var(--ios-spacing-sm);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.15s ease;
}

.ios-add-button:active {
    opacity: 0.5;
}

.ios-add-button .oi {
    font-size: 20px;
}

/* ============================================
   iOS Modal Styles
   ============================================ */

.modal-nbc {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.modal-content-nbc {
    background-color: var(--ios-background-secondary);
    border-radius: var(--ios-radius-xl);
    max-width: 400px;
    margin: auto;
    overflow: hidden;
}

/* iOS Action Sheet Style */
.ios-action-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--ios-spacing-sm);
    padding-bottom: calc(var(--safe-area-inset-bottom) + var(--ios-spacing-sm));
}

.ios-action-sheet-content {
    background-color: var(--ios-background-secondary);
    border-radius: var(--ios-radius-xl);
    overflow: hidden;
}

.ios-action-sheet-button {
    width: 100%;
    padding: 18px;
    font-size: 20px;
    font-weight: 400;
    color: var(--ios-blue);
    background: none;
    border: none;
    border-bottom: 0.5px solid var(--ios-separator);
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ios-action-sheet-button:last-child {
    border-bottom: none;
}

.ios-action-sheet-button.destructive {
    color: var(--ios-red);
}

.ios-action-sheet-button:active {
    background-color: var(--ios-fill-tertiary);
}

.ios-action-sheet-cancel {
    margin-top: var(--ios-spacing-sm);
    font-weight: 600;
}

/* ============================================
   iOS Content Container
   ============================================ */

.ios-content {
    padding: 0 var(--ios-spacing-md);
}

/* ============================================
   iOS List Items (Table View Style)
   ============================================ */

.ios-list-group {
    background-color: var(--ios-background-secondary);
    border-radius: var(--ios-radius-lg);
    overflow: hidden;
    margin-bottom: var(--ios-spacing-lg);
}

.ios-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px var(--ios-spacing-md);
    background-color: var(--ios-background-secondary);
    border-bottom: 0.5px solid var(--ios-separator);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease;
    min-height: 44px;
}

.ios-list-item:last-child {
    border-bottom: none;
}

.ios-list-item:active {
    background-color: var(--ios-fill-tertiary);
}

.ios-list-item-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.ios-list-item-title {
    font-size: 17px;
    font-weight: 400;
    color: var(--ios-label);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ios-list-item-subtitle {
    font-size: 15px;
    color: var(--ios-label-secondary);
}

.ios-list-item-accessory {
    display: flex;
    align-items: center;
    gap: var(--ios-spacing-sm);
    flex-shrink: 0;
}

.ios-list-item-detail {
    font-size: 15px;
    color: var(--ios-label-secondary);
}

.ios-chevron {
    color: var(--ios-label-quaternary);
    font-size: 12px;
}

/* iOS Swipe Actions */
.ios-list-item-actions {
    display: flex;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
}

.ios-list-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
}

.ios-list-action.delete {
    background-color: var(--ios-red);
}

.ios-list-action.archive {
    background-color: var(--ios-purple);
}

/* ============================================
   iOS Empty State
   ============================================ */

.ios-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--ios-spacing-xl) var(--ios-spacing-md);
    text-align: center;
}

.ios-empty-state-icon {
    font-size: 64px;
    color: var(--ios-label-tertiary);
    margin-bottom: var(--ios-spacing-md);
}

.ios-empty-state-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--ios-label);
    margin-bottom: var(--ios-spacing-xs);
}

.ios-empty-state-message {
    font-size: 15px;
    color: var(--ios-label-secondary);
    max-width: 280px;
}

/* ============================================
   iOS Search Bar
   ============================================ */

.ios-search-bar {
    padding: var(--ios-spacing-sm) var(--ios-spacing-md);
}

.ios-search-input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    font-size: 17px;
    background-color: var(--ios-fill-tertiary);
    border: none;
    border-radius: var(--ios-radius-md);
    color: var(--ios-label);
    -webkit-appearance: none;
    appearance: none;
}

.ios-search-input::placeholder {
    color: var(--ios-label-tertiary);
}

.ios-search-input:focus {
    outline: none;
}

/* ============================================
   iOS Segmented Control
   ============================================ */

.ios-segmented-control {
    display: flex;
    background-color: var(--ios-fill-tertiary);
    border-radius: var(--ios-radius-sm);
    padding: 2px;
    margin: var(--ios-spacing-md);
}

.ios-segment {
    flex: 1;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ios-label);
    background: none;
    border: none;
    border-radius: calc(var(--ios-radius-sm) - 2px);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s ease;
}

.ios-segment.active {
    background-color: var(--ios-background-secondary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ============================================
   iOS Pull to Refresh Indicator
   ============================================ */

.ios-refresh-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--ios-spacing-md);
    color: var(--ios-label-secondary);
}

/* ============================================
   iOS Badge
   ============================================ */

.ios-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
    background-color: var(--ios-red);
    border-radius: var(--ios-radius-full);
}

/* ============================================
   iOS Calendar Styles
   ============================================ */

.ios-calendar-grid {
    display: flex;
    flex-direction: column;
    gap: var(--ios-spacing-sm);
    margin-bottom: var(--ios-spacing-lg);
}

.ios-calendar-actions {
    display: flex;
    flex-direction: column;
    gap: var(--ios-spacing-md);
    padding: var(--ios-spacing-md) 0;
}

.ios-week-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--ios-spacing-lg);
}

.ios-week-label {
    font-size: 17px;
    font-weight: 600;
    color: var(--ios-label);
    min-width: 100px;
    text-align: center;
}

.ios-nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--ios-fill-secondary);
    border: none;
    border-radius: var(--ios-radius-full);
    color: var(--ios-blue);
    font-size: 16px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.15s ease;
}

.ios-nav-button:active {
    transform: scale(0.95);
    opacity: 0.7;
}

.ios-full-width-btn {
    width: 100%;
    padding: 14px 20px;
}

/* ============================================
   iOS Utility Classes
   ============================================ */

.ios-text-center {
    text-align: center;
}

.ios-mt-sm {
    margin-top: var(--ios-spacing-sm);
}

.ios-mt-md {
    margin-top: var(--ios-spacing-md);
}

.ios-mt-lg {
    margin-top: var(--ios-spacing-lg);
}

.ios-mb-sm {
    margin-bottom: var(--ios-spacing-sm);
}

.ios-mb-md {
    margin-bottom: var(--ios-spacing-md);
}

.ios-mb-lg {
    margin-bottom: var(--ios-spacing-lg);
}

.ios-px-md {
    padding-left: var(--ios-spacing-md);
    padding-right: var(--ios-spacing-md);
}

.ios-py-md {
    padding-top: var(--ios-spacing-md);
    padding-bottom: var(--ios-spacing-md);
}