/* ============================================
   Roster & Calendar App - Main Stylesheet
   Using provided color palette
   ============================================ */

/* CSS Variables */
:root {
    /* Color Palette */
    --dark-teal: #001219;
    --teal: #005F73;
    --turquoise: #0A9396;
    --light-teal: #94D2BD;
    --cream: #E9D8A6;
    --orange: #EE9B00;
    --burnt-orange: #CA6702;
    --rust: #BB3E03;
    --red: #AE2012;
    --dark-red: #9B2226;

    /* Semantic Colors */
    --primary: var(--turquoise);
    --secondary: var(--teal);
    --accent: var(--orange);
    --success: var(--light-teal);
    --warning: var(--burnt-orange);
    --danger: var(--red);

    /* Background & Surface */
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-elevated: #f1f5f9;
    --border: #e2e8f0;

    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    /* Spacing */
    --sidebar-width: 260px;
    --header-height: 70px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

/* ============================================
   Custom Scrollbar
   ============================================ */

/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body.auth-page {
    background: linear-gradient(135deg, var(--dark-teal), var(--teal));
    background-attachment: fixed;
}

html.auth-page {
    background: linear-gradient(135deg, var(--dark-teal), var(--teal));
    background-attachment: fixed;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: 0.95rem;
}

/* ============================================
   Layout
   ============================================ */

.main-content {
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
}

.main-content.with-sidebar {
    position: relative;
    margin-left: var(--sidebar-width);
    padding: 24px;
    transition: margin-left var(--transition-normal);
    background: var(--bg);
    min-height: 100vh;
    width: calc(100% - var(--sidebar-width));
}

@media (max-width: 1024px) {
    .main-content.with-sidebar {
        margin-left: 0;
        width: 100%;
        padding: 16px;
    }
}

/* ============================================
   Sidebar
   ============================================ */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--dark-teal);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform var(--transition-normal);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }
}

/* ============================================
   Bottom Navigation (Mobile)
   ============================================ */

.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-teal);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
    z-index: 100;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) {
    .bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all var(--transition-fast);
    flex: 1;
    max-width: 120px;
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
}

.bottom-nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

.bottom-nav-item:hover {
    color: white;
}

.bottom-nav-item.active {
    color: var(--turquoise);
}

.bottom-nav-item.active svg {
    color: var(--turquoise);
}

@media (max-width: 1024px) {
    .main-content.with-sidebar {
        padding-bottom: 80px;
    }
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: transparent;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.sidebar-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    padding: 8px;
}

@media (max-width: 1024px) {
    .sidebar-toggle {
        display: block;
    }
}

.sidebar-nav {
    flex: 1;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.nav-item.active {
    background: rgba(10, 147, 150, 0.2);
    color: var(--turquoise);
    border-left: 3px solid var(--turquoise);
}

.nav-item svg {
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--turquoise);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
}

.user-role {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: capitalize;
}

.logout-btn {
    padding: 8px;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
}

.logout-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.sidebar-install-section {
    padding: 0 20px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.install-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: var(--turquoise);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(10, 147, 150, 0.3);
}

.install-btn:hover {
    background: #0d9ea1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(10, 147, 150, 0.4);
}

.install-btn:active {
    transform: translateY(0);
}

.install-btn svg {
    flex-shrink: 0;
}

.install-btn span {
    white-space: nowrap;
}

.install-btn-hidden {
    display: none !important;
}

/* Mobile install button in bottom nav */
.install-btn-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all var(--transition-fast);
    flex: 1;
    max-width: 120px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.install-btn-mobile svg {
    width: 24px;
    height: 24px;
}

.install-btn-mobile span {
    font-size: 0.75rem;
    font-weight: 500;
}

.install-btn-mobile:hover {
    color: var(--turquoise);
}

.install-btn-mobile:active {
    color: var(--turquoise);
}

.install-btn-mobile.install-btn-hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .sidebar-install-section {
        display: none; /* Hide sidebar install button on mobile */
    }
}

/* ============================================
   Page Header
   ============================================ */

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.page-title h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 4px 0 0 0;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: none;
    transition: all var(--transition-fast);
    cursor: pointer;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--turquoise), var(--teal));
    color: white;
    box-shadow: 0 4px 12px rgba(10, 147, 150, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(10, 147, 150, 0.4);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface-elevated);
    border-color: var(--text-muted);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--surface-elevated);
    color: var(--text-primary);
}

.btn-danger {
    background: linear-gradient(135deg, var(--red), var(--dark-red));
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(174, 32, 18, 0.4);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.8rem;
}

.btn-icon {
    padding: 10px;
}

/* ============================================
   Forms
   ============================================ */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-row {
    display: flex;
    gap: 16px;
}

@media (max-width: 640px) {
    .form-row {
        flex-direction: column;
    }
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--turquoise);
    box-shadow: 0 0 0 3px rgba(10, 147, 150, 0.15);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group svg {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
}

.input-group input {
    padding-left: 44px;
    padding-right: 48px;
}

.input-group .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 4px;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.input-group .toggle-password:hover {
    color: var(--text-primary);
}

.input-group .toggle-password svg {
    pointer-events: none;
    width: 20px;
    height: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.checkbox-label input {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.checkbox-label input:checked+.checkbox-custom {
    background: var(--turquoise);
    border-color: var(--turquoise);
}

.checkbox-label input:checked+.checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Multi-select */
.multi-select-container {
    position: relative;
}

.selected-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.selected-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px 6px 12px;
    background: var(--surface-elevated);
    border-radius: 20px;
    font-size: 0.8rem;
}

.selected-chip button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.multi-select-dropdown {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.multi-select-search {
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
    border-radius: 0 !important;
}

.multi-select-options {
    max-height: 200px;
    overflow-y: auto;
}

.multi-select-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background var(--transition-fast);
    width: 100%;
    box-sizing: border-box;
}

label.multi-select-option {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
}

.multi-select-option:hover {
    background: var(--surface-elevated);
}

.multi-select-option input {
    display: none;
}

.option-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--turquoise);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.option-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    align-items: flex-start;
    justify-content: center;
}

.option-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

.option-position {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.multi-select-option input:checked+.option-avatar {
    background: var(--teal);
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--turquoise);
}

/* ============================================
   Modals
   ============================================ */

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 18, 25, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-sm {
    max-width: 420px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 4px;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* ============================================
   Alerts
   ============================================ */

.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-error {
    background: rgba(174, 32, 18, 0.1);
    color: var(--red);
    border-left: 4px solid var(--red);
}

/* ============================================
   Confirmation Modal
   ============================================ */

#confirmModal .modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

#confirmModal .modal-body {
    padding: 24px;
}

#confirmModal .modal-body p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

#confirmModal .modal-body p strong {
    color: var(--text-primary);
    font-weight: 600;
}

#confirmModal .modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.alert-success {
    background: rgba(148, 210, 189, 0.2);
    color: var(--teal);
    border-left: 4px solid var(--turquoise);
}

.alert-warning {
    background: rgba(238, 155, 0, 0.1);
    color: var(--burnt-orange);
    border-left: 4px solid var(--orange);
}

/* ============================================
   Toast Notifications
   ============================================ */

#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (max-width: 1024px) {
    #toast-container {
        bottom: 100px;
    }
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    max-width: 360px;
}

.toast.toast-success {
    border-left: 4px solid var(--turquoise);
}

.toast.toast-error {
    border-left: 4px solid var(--red);
}

.toast.toast-warning {
    border-left: 4px solid var(--orange);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   Auth Pages
   ============================================ */

.auth-container {
    min-height: 100vh;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.auth-backdrop {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.backdrop-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
    z-index: 0;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--turquoise);
    top: -200px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--orange);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--light-teal);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, 30px) scale(1.1);
    }
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo-img {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px auto;
    display: block;
    object-fit: contain;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.auth-header p {
    color: var(--text-secondary);
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--turquoise);
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   Error Page
   ============================================ */

.error-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.error-content {
    text-align: center;
}

.error-icon {
    color: var(--orange);
    margin-bottom: 24px;
}

.error-content h1 {
    font-size: 2rem;
    margin: 0 0 12px 0;
}

.error-content p {
    color: var(--text-secondary);
    margin: 0 0 32px 0;
}

/* ============================================
   Dashboard
   ============================================ */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stat-icon.events {
    background: linear-gradient(135deg, var(--turquoise), var(--teal));
}

.stat-icon.rosters {
    background: linear-gradient(135deg, var(--orange), var(--burnt-orange));
}

.stat-icon.staff {
    background: linear-gradient(135deg, var(--light-teal), var(--turquoise));
}

.stat-details h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.stat-details p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

/* ============================================
   Utilities
   ============================================ */

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

.hidden {
    display: none !important;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-card {
        padding: 32px 24px;
    }
}

@media (max-width: 640px) {
    .main-content {
        padding: 16px;
    }

    .modal-content {
        padding: 20px;
    }

    /* Auth page responsive adjustments */
    .auth-container {
        padding: 16px;
    }

    .auth-card {
        padding: 32px 24px;
    }

    /* Smaller backdrop shapes on mobile */
    .shape-1 {
        width: 300px;
        height: 300px;
        top: -100px;
        right: -50px;
    }

    .shape-2 {
        width: 200px;
        height: 200px;
        bottom: -50px;
        left: -50px;
    }

    .shape-3 {
        width: 150px;
        height: 150px;
    }

    .backdrop-shape {
        opacity: 0.1;
    }
}

@media (max-width: 320px) {

    /* Extra small screens - reduce padding and spacing */
    .auth-container {
        padding: 12px;
    }

    .auth-card {
        padding: 24px 16px;
        border-radius: var(--radius-lg);
    }

    .auth-header {
        margin-bottom: 24px;
    }

    .auth-logo-img {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }

    .auth-header h1 {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }

    .auth-header p {
        font-size: 0.85rem;
    }

    /* Bottom navigation adjustments for very small screens */
    .bottom-nav {
        padding: 6px 0;
    }

    .bottom-nav-item {
        padding: 6px 8px;
        max-width: none;
        flex: 1;
        min-width: 0;
    }

    .bottom-nav-item svg {
        width: 20px;
        height: 20px;
    }

    .bottom-nav-item span {
        font-size: 0.65rem;
    }

    .install-btn-mobile svg {
        width: 20px;
        height: 20px;
    }

    .install-btn-mobile span {
        font-size: 0.65rem;
    }

    .auth-form {
        gap: 16px;
    }

    .auth-footer {
        margin-top: 20px;
        padding-top: 20px;
        font-size: 0.85rem;
    }

    /* Reduce input padding on very small screens */
    .input-group input {
        padding-left: 40px;
        padding-right: 44px;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    .input-group svg {
        left: 12px;
    }

    .input-group .toggle-password {
        right: 10px;
    }
}