#cardsContainer {
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    /* Center "Today" */
    margin-top: 10px;
    /* Requested 10px down */
    flex-wrap: wrap;
    /* Ensure they wrap if needed, or behave as carousel */
    gap: 15px;
    /* Maintain gap */
}

#cardsContainer.switching {
    opacity: 0;
    transform: scale(0.98);
}

body.no-scroll {
    overflow: hidden;
    padding-right: 15px;
    /* Prevent layout shift when scrollbar disappears */
}

/* Aggressive background locking when modals are open */
body.no-scroll>.top-nav-controls,
body.no-scroll>.cards-wrapper,
body.no-scroll>.content-area {
    pointer-events: none !important;
    user-select: none !important;
    filter: blur(5px) grayscale(30%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Ensure modals remain interactive */
.admin-modal {
    pointer-events: auto !important;
}

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

/* Oval Box for Permissions Modal */
.oval-box {
    border-radius: 40px !important;
}

/* Fix action button clicks - prevent SVG from intercepting */
.action-btn svg {
    pointer-events: none;
}

/* Advanced Tagging Styles */
.mention.range-tag {
    background: rgba(147, 51, 234, 0.1) !important;
    color: #9333ea !important;
    border: 1px solid rgba(147, 51, 234, 0.2) !important;
    padding: 2px 12px !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
}

.file-attachment {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(147, 51, 234, 0.1) !important;
    color: #9333ea !important;
    padding: 4px 12px !important;
    border-radius: 999px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border: 1px solid rgba(147, 51, 234, 0.2) !important;
    margin: 2px 0 !important;
    cursor: pointer !important;
    font-family: inherit !important;
}

.file-attachment:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-1px) !important;
}

/* Admin Navigation Controls Header Area */
.top-nav-controls {
    position: absolute;
    top: 25px;
    right: 45px;
    z-index: 2500;
    display: flex;
    gap: 10px;
    align-items: center;
    background: transparent !important;
}

.language-selector {
    position: relative;
    display: flex;
    align-items: center;
}


.lang-btn:hover {
    transform: scale(1.15);
}

.admin-btn,
.notification-btn,
.logout-btn,
.lang-btn {
    padding: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    appearance: none !important;
    color: #2563eb;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-btn:hover,
.notification-btn:hover,
.logout-btn:hover,
.lang-btn:hover {
    transform: scale(1.15);
    color: #1d4ed8;
}

.admin-btn svg,
.notification-btn svg,
.logout-btn svg,
.lang-btn svg {
    width: 26px;
    height: 26px;
}

/* Modal Overlay & General Content Structure */
#playerDetailsModal .modal-content,
#globalReportModal .modal-content,
#addUserModal .modal-content,
#reportingModal .modal-content,
#settingsModal .modal-content,
#adminModal .modal-content,
#cropperModal .modal-content,
#dateRangePickerModal .modal-content,
#passwordResetModal .modal-content,
#userPermissionsModal .modal-content,
.dashboard-content {
    width: 1000px;
    max-width: 95vw;
    height: 85vh;
    display: flex;
    flex-direction: column;
    background: #ffffff !important;
    border-radius: 40px !important;
    box-shadow: 0 40px 100px rgba(15, 23, 42, 0.4);
    overflow: hidden !important;
    margin: auto;
}

/* Password Reset Modal - Compact Height */
#passwordResetModal .modal-content {
    height: auto !important;
    max-height: 500px !important;
    min-height: unset !important;
}

#resetConfirmationModal .modal-content {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    margin: auto;
    display: flex;
    flex-direction: column;
}

#playerDetailsModal .dashboard-form,
.global-report-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 0 32px 10px 32px;
}

#globalReportInput {
    flex: 1;
    min-height: 400px;
    resize: none;
    font-size: 1rem;
    line-height: 1.5 !important;
    /* Unified with backdrop */
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px !important;
    /* Unified with wrapper/backdrop system */
    background: #f8fafc;
    font-family: 'Outfit', -apple-system, sans-serif !important;
    color: transparent !important;
    /* Force transparent for rich text overlay sync */
    caret-color: #000000 !important;
}

#globalReportInput:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-modal.open {
    display: flex;
    opacity: 1;
}

#dateRangePickerModal {
    z-index: 5000;
}

#dateRangePickerModal .modal-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
}

#dateRangePickerModal .range-picker-body {
    background: white;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
}

/* Redesigned Settings Modal & Premium Inputs */
.premium-file-input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.premium-file-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ffffff;
    color: #2563eb;
    border: 2px solid #e0e7ff;
    border-radius: 50px;
    /* Oval edges */
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.premium-file-label:hover {
    background: #f1f5ff;
    border-color: #2563eb;
    transform: translateY(-1px);
}

/* Successfully Uploaded State */
.premium-file-label.has-file {
    background: #ecfdf5;
    color: #059669;
    border-color: #a7f3d0;
}

.premium-file-label.has-file:hover {
    background: #d1fae5;
    border-color: #059669;
}

.premium-file-label svg {
    width: 16px;
    height: 16px;
}

.dynamic-registry-row {
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.dynamic-registry-row:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.registry-input {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b;
    background: #f8fafc;
    text-transform: uppercase;
}

.registry-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #fff;
}

.add-registry-btn {
    width: 100%;
    padding: 12px;
    background: #f1f5f9;
    color: #475569;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

.add-registry-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
    border-color: #94a3b8;
}

.upload-registry-label {
    background: #f1f5f9;
    color: #64748b;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.upload-registry-label:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.upload-registry-label.has-file {
    background: #dcfce7;
    color: #22c55e;
}

.upload-registry-label.has-file:hover {
    background: #bbf7d0;
    color: #15803d;
}

.remove-registry-btn {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-registry-btn:hover {
    background: #fecaca;
    color: #b91c1c;
}

.save-registry-btn {
    background: #e0f2fe;
    color: #0284c7;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-registry-btn:hover {
    background: #bae6fd;
    color: #0369a1;
}

.dynamic-logo-item {
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.modal-content.settings-wide {
    max-width: 1000px !important;
    width: 95% !important;
}

.modal-header {
    padding: 24px 32px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.25rem;
    color: #0f172a;
    font-weight: 800;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}

/* Admin Tabs Navigation */
.admin-tabs-nav {
    display: flex;
    gap: 12px;
    padding: 0 32px;
    background: white;
    margin-bottom: 20px;
}

.admin-tab-btn {
    padding: 12px 24px;
    border: none;
    background: none;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.admin-tab-btn.active {
    color: #2563eb;
}

.admin-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #2563eb;
    border-radius: 3px 3px 0 0;
}

.admin-tab-btn:hover:not(.active) {
    color: #334155;
    background: #f8fafc;
    border-radius: 8px;
}

/* Tab Panes */
.admin-tab-container {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.admin-tab-pane {
    display: none;
    height: 100%;
}

.admin-tab-pane.active {
    display: flex;
    flex-direction: column;
}

/* Player Management Tab Styles */
.player-management-header {
    padding: 0 32px 20px 32px;
}

.player-management-header h3 {
    font-size: 1.125rem;
    color: #1e293b;
    margin-bottom: 4px;
}

.player-management-header p {
    font-size: 0.875rem;
    color: #64748b;
}

.player-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    padding: 8px 32px 32px 32px;
    flex: 1;
    overflow-y: auto;
}

.player-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
}

.player-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #3b82f6;
}

.player-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f1f5f9;
}

.player-card-info {
    padding-top: 16px;
    text-align: center;
}

.player-card-name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.player-card-club {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

/* Form Grid for Details Modal */
.dashboard-form {
    padding: 0 32px 32px 32px;
}

.dashboard-form .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #475569;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1rem;
    transition: all 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-group input.invalid,
.form-group select.invalid {
    border-color: #ef4444 !important;
    background-color: #fff1f2;
}

.error-msg {
    color: #ef4444;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 4px;
    display: none;
    animation: fadeInError 0.2s ease;
}

@keyframes fadeInError {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

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

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Dashboard Summary */
.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 24px 32px;
}

.paint-mode-active .paintable {
    cursor: crosshair !important;
}

/* Text Style Dropdown */
.text-style-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 12px;
    display: none;
    flex-direction: column;
    min-width: 180px;
    border: 1px solid #e2e8f0;
    z-index: 9999;
}

.text-style-dropdown.open {
    display: flex;
}

.style-section-title {
    font-size: 0.7rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #f1f5f9;
}

.font-option {
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #334155;
    transition: all 0.2s;
    margin-bottom: 2px;
}

.font-option:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.font-option.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 700;
}

.color-picker-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
}

.color-picker-row label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
}

.summary-card {
    background: white;
    padding: 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
}

.summary-card .card-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-card.blue .card-icon {
    background: #eff6ff;
    color: #3b82f6;
}

.summary-card.green .card-icon {
    background: #f0fdf4;
    color: #22c55e;
}

.summary-card.red .card-icon {
    background: #fef2f2;
    color: #ef4444;
}

.summary-card.add-user {
    cursor: pointer;
    border-style: dashed;
    border-width: 2px;
}

.summary-card.add-user .card-icon {
    background: #f8fafc;
    color: #64748b;
    font-weight: bold;
}

.card-info {
    display: flex;
    flex-direction: column;
}

.card-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 600;
}

.card-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
}

.card-value-small {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

/* End of Nav Controls Section */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    padding: 8px;
    display: none;
    flex-direction: column;
    min-width: 150px;
    border: 1px solid #e2e8f0;
}

.lang-dropdown.open {
    display: flex;
}

.lang-option {
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    transition: all 0.2s;
    white-space: nowrap;
}

.lang-option:hover {
    background: #f1f5f9;
    color: #2563eb;
}

/* Filter Section */
.filter-section {
    padding: 24px 32px;
    background: white;
    margin: 0 32px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

/* Settings Color Grid Layout */
.settings-color-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.color-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s;
    width: 80px;
}

.color-card:hover {
    transform: translateY(-2px);
}

.color-card-preview {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    /* fallback */
}

.color-card-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    text-align: center;
    text-transform: uppercase;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.add-color-card {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s;
}

.add-color-card:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

.editor-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.2s ease-out;
}

.editor-container.hidden {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 16px;
    align-items: flex-end;
}

.filter-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 6px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    background: #f8fafc;
}

.reset-filters {
    padding: 10px 16px;
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
}

/* User List */
.user-list-container {
    padding: 24px 32px 0 32px;
    /* Bottom padding moved to wrapper */
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    /* Title stays fixed */
}

.user-table-wrapper {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 40px;
}

.user-list-container h3 {
    font-size: 1.125rem;
    color: #1e293b;
    margin-bottom: 20px;
}

.user-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.user-table th {
    text-align: left;
    padding: 12px 16px;
    background: #f8fafc;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    border-bottom: 2px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.user-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.user-table-wrapper::-webkit-scrollbar {
    width: 6px;
}

.user-table-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.user-table-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.user-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.user-table td {
    padding: 16px;
    font-size: 0.9375rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge.active {
    background: #dcfce7;
    color: #15803d;
}

.badge.suspended {
    background: #fee2e2;
    color: #b91c1c;
}

.actions {
    display: flex;
    gap: 8px;
}



/* Forms in Dashboard */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.dashboard-form .form-group {
    margin-bottom: 12px;
}

#addUserModal .modal-content {
    max-width: 600px;
    height: auto;
    max-height: 98vh;
    padding-bottom: 20px;
}

.submit-btn.primary {
    background: #2563eb;
    margin-top: 10px;
}

.badge.expired {
    background: #fee2e2;
    color: #991b1b;
}

/* Accessibility and Empty State */
/* Password Input Wrapper & Toggle */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper input {
    padding-right: 45px !important;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.2s ease;
    z-index: 5;
}

.toggle-password:hover {
    color: #3b82f6;
}

.toggle-password svg {
    width: 18px;
    height: 18px;
}

/* Photo Upload Section */
.photo-upload-section {
    margin-bottom: 24px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
}

.photo-upload-section label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 12px;
}

.photo-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.photo-preview-box {
    width: 80px;
    height: 80px;
    background: #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.75rem;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.photo-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Cropper Modal Specifics */
.cropper-dialog {
    max-width: 600px !important;
    height: auto !important;
}

.cropper-container {
    width: 100%;
    max-height: 400px;
    background: #000;
    margin-bottom: 20px;
    overflow: hidden;
}

.cropper-container img {
    max-width: 100%;
}

.modal-footer {
    padding: 20px 32px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    background: #ffffff;
}

/* Table Avatar Styles */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.user-info-cell {
    display: flex;
    align-items: center;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.cards-wrapper {
    width: 100%;
    padding: 40px 20px 10px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    overflow: hidden;
    position: relative;
}


.cards-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    perspective: 1000px;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.date-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ffffff 0%, #f0f4f8 100%);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
    pointer-events: auto;
    user-select: none;
}

.date-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #2563eb, #1d4ed8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.date-card:hover::before {
    opacity: 1;
}

.date-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Center card - Today */
.date-card.center {
    width: 160px;
    height: 180px;
    background: linear-gradient(145deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    color: white;
    z-index: 10;
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.4),
        0 0 15px rgba(59, 130, 246, 0.3);
}

.date-card.center::before {
    display: none;
}

.date-card.center:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(59, 130, 246, 0.5),
        0 8px 24px rgba(37, 99, 235, 0.4);
}

/* Adjacent cards - 1 step away */
.date-card.adjacent-1 {
    width: 130px;
    height: 150px;
    opacity: 0.9;
}

/* Cards 2 steps away */
.date-card.adjacent-2 {
    width: 110px;
    height: 130px;
    opacity: 0.75;
}

/* Cards 3 steps away */
.date-card.adjacent-3 {
    width: 95px;
    height: 115px;
    opacity: 0.6;
}

/* Cards 4 steps away */
.date-card.adjacent-4 {
    width: 80px;
    height: 100px;
    opacity: 0.45;
}

.day-name {
    font-size: 0.7em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 4px;
    text-align: center;
}

.day-number {
    font-size: 2em;
    font-weight: 700;
    line-height: 1.1;
}

.month-year {
    font-size: 0.65em;
    font-weight: 500;
    opacity: 0.7;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.date-card.center .day-name {
    font-size: 0.85em;
}

.date-card.center .day-number {
    font-size: 3em;
}

.date-card.center .month-year {
    font-size: 0.75em;
}

.date-card.adjacent-1 .day-number {
    font-size: 1.8em;
}

.date-card.adjacent-2 .day-number {
    font-size: 1.5em;
}

.date-card.adjacent-3 .day-number {
    font-size: 1.3em;
}

.date-card.adjacent-4 .day-number {
    font-size: 1.1em;
}

.date-card:not(.center) {
    color: #374151;
}

.content-area {
    flex: 1;
    padding: 10px 40px 40px 40px;
    background-color: #ffffff;
}

.athletes-main-section {
    padding: 20px 40px;
}

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

.section-header h3 {
    font-size: 1.5rem;
    color: #1e293b;
    font-weight: 800;
}

#reportingModal .modal-content {
    max-width: 900px;
    height: 85vh;
}



.athlete-history-section {
    padding: 10px 0 32px 0;
}

.athlete-history-section .section-title {
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

/* History Tabs in Athlete Modal */
.history-tabs-nav {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.history-tabs-nav::-webkit-scrollbar {
    display: none;
}

.history-tab-btn {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: white;
    font-size: 0.775rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.history-tab-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.history-content-area,
#adminReportsList,
#notifHistoryList {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 12px;
}

.history-content-area::-webkit-scrollbar,
#adminReportsList::-webkit-scrollbar,
#notifHistoryList::-webkit-scrollbar {
    width: 6px;
}

.history-content-area::-webkit-scrollbar-track,
#adminReportsList::-webkit-scrollbar-track,
#notifHistoryList::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.history-content-area::-webkit-scrollbar-thumb,
#adminReportsList::-webkit-scrollbar-thumb,
#notifHistoryList::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.history-content-area::-webkit-scrollbar-thumb:hover,
#adminReportsList::-webkit-scrollbar-thumb:hover,
#notifHistoryList::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.reports-dashboard-container {
    flex: 1;
}

.history-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.history-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.history-card-date {
    font-size: 0.75rem;
    font-weight: 800;
    color: #2563eb;
}

.history-card-content {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-line-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.history-line-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.history-line-content {
    flex: 1;
    min-width: 0;
    /* Prevents overflow in flexbox */
}

.history-line-text {
    word-break: break-word;
}

.history-item-actions {
    display: flex;
    gap: 12px;
    margin-left: 12px;
    opacity: 1;
    transition: all 0.2s ease;
}

.history-line-item:hover .history-item-actions {
    opacity: 1;
}

.action-btn {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    padding: 0;
    border: none !important;
    border-radius: 0;
    cursor: pointer;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: transparent !important;
    box-shadow: none !important;
}

.action-btn:hover {
    background-color: transparent !important;
    transform: scale(1.15);
    box-shadow: none !important;
    opacity: 1 !important;
}

.action-btn.edit {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'%3E%3C/path%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'%3E%3C/path%3E%3C/svg%3E");
}

.action-btn.edit:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e293b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'%3E%3C/path%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'%3E%3C/path%3E%3C/svg%3E");
}

.action-btn.password {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3L15.5 7.5z'%3E%3C/path%3E%3C/svg%3E");
}

.action-btn.password:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e293b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3L15.5 7.5z'%3E%3C/path%3E%3C/svg%3E");
}

.action-btn.suspend {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='4.93' y1='4.93' x2='19.07' y2='19.07'%3E%3C/line%3E%3C/svg%3E");
}

.action-btn.suspend:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e293b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='4.93' y1='4.93' x2='19.07' y2='19.07'%3E%3C/line%3E%3C/svg%3E");
}

.action-btn.delete {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'%3E%3C/polyline%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'%3E%3C/path%3E%3Cline x1='10' y1='11' x2='10' y2='17'%3E%3C/line%3E%3Cline x1='14' y1='11' x2='14' y2='17'%3E%3C/line%3E%3C/svg%3E");
}

.action-btn.delete:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'%3E%3C/polyline%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'%3E%3C/path%3E%3Cline x1='10' y1='11' x2='10' y2='17'%3E%3C/line%3E%3Cline x1='14' y1='11' x2='14' y2='17'%3E%3C/line%3E%3C/svg%3E");
}

.empty-history {
    text-align: center;
    color: #94a3b8;
    padding: 40px 0;
    font-style: italic;
    font-size: 0.875rem;
}

/* Refined Player Card */
.player-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
}

.player-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #3b82f6;
}

.player-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f1f5f9;
}

.player-card-info {
    padding: 16px 12px 0 12px;
    text-align: center;
    width: 100%;
}

.player-card-name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.player-card-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.player-card-position {
    font-size: 0.75rem;
    color: #2563eb;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.player-card-club {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

/* Reporting Interface */
.reporting-container {
    padding: 0 40px 40px 40px;
}

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

.role-selector-sim {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #eff6ff;
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid #bfdbfe;
}

.role-selector-sim label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e40af;
}

.role-selector-sim select {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-weight: 600;
}

.athlete-selector-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0 20px 0;
    margin-bottom: 20px;
}

.athlete-mini-card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    background: white;
    border: 2px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100px;
}

.athlete-mini-card:hover {
    border-color: #3b82f6;
}

.athlete-mini-card.active {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.athlete-mini-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: #e2e8f0;
}

.athlete-mini-name {
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.report-form-container.card {
    background: white;
    padding: 32px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    min-height: 400px;
}

.empty-msg {
    text-align: center;
    color: #94a3b8;
    padding-top: 100px;
    font-style: italic;
}

/* Form Elements inside report */
.report-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}

.report-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
}

.report-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-family: inherit;
    /* Color handled by rich-text logic below or default inherited */
}

.pain-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

.pain-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.pain-btn.active {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.reports-section {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    justify-content: center;
    scrollbar-color: rgba(59, 130, 246, 0.5) transparent;
}

.reports-section::-webkit-scrollbar {
    height: 6px;
}

.reports-section::-webkit-scrollbar-track {
    background: transparent;
}

.reports-section::-webkit-scrollbar-thumb {
    background-color: rgba(59, 130, 246, 0.3);
    border-radius: 10px;
}

.report-card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    width: 160px;
    height: 180px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02),
        0 2px 8px rgba(0, 0, 0, 0.01);
}

.report-preview {
    width: 140px;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 12px;
    margin-top: 10px;
    padding: 8px 12px;
    font-size: 0.75rem;
    color: #475569;
    overflow: hidden;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(4px);
}

.report-card:hover .report-preview {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.consolidated-bubble-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

.consolidated-bubble {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    position: relative;
    transition: transform 0.2s;
}

.consolidated-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.bubble-category {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 6px;
    display: block;
}

.bubble-content {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.5;
    white-space: pre-wrap;
    font-weight: 500;
}


.report-card:hover {
    transform: translateY(-12px);
    background: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 20px 30px rgba(37, 99, 235, 0.2);
}

.report-icon {
    font-size: 3.5rem;
    /* Larger icon like the date number */
    line-height: 1;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
    transition: all 0.4s ease;
    margin-top: 10px;
}

/* Global Report Modal Specifics */
#globalReportModal {
    align-items: flex-start;
    /* Start from top to allow scrolling */
    overflow-y: auto;
    padding: 40px 0;
    /* Add some vertical breathing room */
}

/* Global Report Modal Styles consolidated above */

/* Report Mode Tabs */
#reportModeToggle {
    display: flex;
    gap: 32px;
    background: transparent;
    padding: 0 12px;
    margin-bottom: 0;
    border-bottom: 1px solid #e2e8f0;
}

#reportModeToggle .mode-btn {
    appearance: none;
    -webkit-appearance: none;
    padding: 12px 4px;
    font-size: 1rem;
    font-weight: 700;
    color: #64748b;
    background: transparent !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
    margin-bottom: -1px;
    /* Overlap border */
}

#reportModeToggle .mode-btn:hover {
    color: #1e293b;
    background: transparent !important;
}

#reportModeToggle .mode-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb !important;
    background: transparent !important;
}

/* Rich Tag Highlighting */
.report-input-wrapper {
    position: relative;
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.2s;
    margin-top: 20px;
    margin-bottom: 5px;
    padding: 24px;
    /* Move padding here for cursor fix */
}

.report-input-wrapper:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.report-backdrop,
.report-input {
    margin: 0 !important;
    padding: 0 !important;
    /* Zero padding here since it moved to wrapper */
    width: 100% !important;
    height: 600px !important;
    font-family: 'Outfit', -apple-system, sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    /* Set to 700 for better visibility and sync */
    line-height: 1.5 !important;
    letter-spacing: 0px !important;
    /* Force explicit spacing to prevent cumulative drift */
    word-spacing: 0px !important;
    text-transform: none !important;
    tab-size: 4;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    text-rendering: optimizeSpeed !important;
    font-kerning: none !important;
    /* CRITICAL: Disable kerning to ensure pixel-perfect character widths */
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    font-variant-ligatures: none !important;
    box-sizing: border-box !important;
    border: none !important;
    background: transparent !important;
}

/* Rich Text Report Input (The Ham Text) */
.report-input {
    position: absolute !important;
    /* CRITICAL: Must match backdrop position */
    top: 24px !important;
    /* Match wrapper padding */
    left: 24px !important;
    /* Match wrapper padding */
    z-index: 2 !important;
    color: transparent !important;
    /* CRITICAL: Hide ham text */
    caret-color: #000000 !important;
    /* Keep cursor visible */
    background: transparent !important;
    resize: none !important;
    outline: none !important;
    display: block !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    width: calc(100% - 48px) !important;
    /* Match backdrop width */
    height: calc(100% - 48px) !important;
    /* Match backdrop height */
    overflow-y: scroll !important;
    /* Force scrollbar to match backdrop */
    scrollbar-width: thin !important;
    /* Firefox: thin scrollbar */
    -ms-overflow-style: none;
    /* Hide scrollbar in IE/Edge for better alignment if needed, but matched scroll is better */
    -webkit-text-fill-color: transparent !important;
    /* Safari: ensure text transparency */
}

/* Standardize scrollbar width for perfect alignment */
.report-input::-webkit-scrollbar,
.report-backdrop::-webkit-scrollbar {
    width: 8px !important;
}

.report-input::-webkit-scrollbar-track,
.report-backdrop::-webkit-scrollbar-track {
    background: transparent !important;
}

.report-input::-webkit-scrollbar-thumb {
    background: rgba(203, 213, 225, 0.5) !important;
    border-radius: 4px !important;
}

.report-input::-webkit-scrollbar-thumb:hover {
    background: rgba(203, 213, 225, 0.8) !important;
}

.report-backdrop::-webkit-scrollbar-thumb {
    background: transparent !important;
    /* Backdrop scrollbar invisible */
}

/* CRITICAL: Hide textarea text during selection (Ctrl+A) */
.report-input::selection,
.report-input::-moz-selection {
    background: transparent !important;
    color: transparent !important;
    text-shadow: none !important;
}

/* Ensure backdrop text can still be visually selected (for copy) */
.report-backdrop::selection,
.report-backdrop::-moz-selection {
    background: rgba(59, 130, 246, 0.2) !important;
    color: inherit !important;
}

.report-backdrop {
    position: absolute !important;
    top: 24px !important;
    /* Match wrapper padding */
    left: 24px !important;
    /* Match wrapper padding */
    z-index: 1 !important;
    display: block !important;
    color: #000000 !important;
    pointer-events: none !important;
    user-select: none !important;
    /* Prevent backdrop selection */
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    height: calc(100% - 48px) !important;
    width: calc(100% - 48px) !important;
    overflow-y: scroll !important;
    /* Force scrollbar to match textarea */
    border: none !important;
    background: transparent !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    font-family: 'Outfit', -apple-system, sans-serif !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

/* Perfect alignment highlights for live typing */
.live-pill {
    display: inline !important;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1) 0%, rgba(147, 51, 234, 0.2) 100%) !important;
    color: #9333ea !important;
    border-radius: 4px !important;
    padding: 0 !important;
    /* CRITICAL: No padding to maintain character width */
    margin: 0 !important;
    /* CRITICAL: No margin to prevent drift */
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.1), 0 0 0 1px rgba(147, 51, 234, 0.2) !important;
    box-decoration-break: clone !important;
    /* Maintain styling across line breaks */
    -webkit-box-decoration-break: clone !important;
}

.live-pill.range {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.2) 100%) !important;
    color: #2563eb !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1), 0 0 0 1px rgba(59, 130, 246, 0.2) !important;
}

.live-pill.file {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.2) 100%) !important;
    color: #059669 !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1), 0 0 0 1px rgba(16, 185, 129, 0.2) !important;
}

.report-input::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

/* Compact version for notifications */
.compact-report-input .report-backdrop,
.compact-report-input .report-input {
    height: 310px !important;
}

/* Notification Filters Bar */
.notif-filters-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 5px;
}

/* Global Send Controls */
.global-send-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.send-target-select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #1e293b;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    min-width: 120px;
}

.send-target-select:hover {
    border-color: #cbd5e1;
}

.global-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #3b82f6;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.global-send-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

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

.global-send-btn svg {
    width: 20px;
    height: 20px;
}

.global-send-btn.loading svg {
    animation: spin 1s linear infinite;
}

.export-btn {
    background: transparent;
    color: #64748b;
    border: 1px solid #e2e8f0;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.export-btn:hover {
    background: #f8fafc;
    color: #1e293b;
    border-color: #cbd5e1;
}

.export-btn svg {
    color: currentColor;
}

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

    to {
        transform: rotate(360deg);
    }
}

.notif-filter-group {
    display: flex;
    gap: 6px;
    align-items: center;
}

.notif-filter-input,
.notif-filter-select {
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #334155;
    background: white;
    outline: none;
    transition: all 0.2s;
}

.notif-filter-input:focus,
.notif-filter-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.notif-filter-input {
    width: 145px;
}

.notif-filter-select {
    min-width: 130px;
}

.notif-history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

/* Backdrop Pills - Refined Premium Look */
.hl-mention,
.hl-range,
.hl-file {
    border-radius: 6px;
    padding: 2px 0;
    /* Vertical padding only, horizontal padding breaks character sync if not careful */
    margin: 0;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    display: inline;
    position: relative;
    font-weight: 600;
}

.hl-mention {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb !important;
    border-bottom: 2px solid rgba(37, 99, 235, 0.3);
}

.hl-range {
    background: rgba(16, 185, 129, 0.08);
    color: #059669 !important;
    border-bottom: 2px solid rgba(16, 185, 129, 0.3);
}

.hl-file {
    background: rgba(71, 85, 105, 0.08);
    color: #475569 !important;
    border-bottom: 2px solid rgba(71, 85, 105, 0.3);
}

/* Character Parity Ghosting - COMPLETELY INVISIBLE BUT OCCUPIES SPACE */
.hl-ghost {
    opacity: 0 !important;
    color: transparent !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    letter-spacing: inherit !important;
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    display: inline !important;
    /* CRITICAL: Must occupy space for cursor alignment */
}


.range-tag .hl-ghost,
.file-attachment .hl-ghost {
    display: inline-block;
    width: 0;
    height: 0;
    overflow: hidden;
    position: absolute;
    /* This is for permanent reports, stay as is */
}

/* For Live Highlighting (The actual typing sync) */
.live-pill .hl-ghost {
    opacity: 0 !important;
    /* Premium: Keep it completely invisible */
    display: inline !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    position: static !important;
}

/* Shake Animation for Validation */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.3s ease-in-out 0s 2;
    color: #ef4444 !important;
    /* Visual feedback in red */
}

/* Main Sections (Reports & Athletes) Styling */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper input {
    padding-right: 48px !important;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border-radius: 8px;
}

.toggle-password:hover {
    color: #2563eb;
    background: #eff6ff;
}

.toggle-password.active {
    color: #2563eb;
}

.reports-main-section,
.athletes-main-section {
    padding: 0 45px;
    margin-bottom: 40px;
    margin-top: 10px;
    /* Requested 10px down for Players & Staff */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.section-header {
    width: 100%;
    text-align: center;
    position: relative;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    color: #0f172a;
    font-weight: 500;
    margin: 0;
    padding-bottom: 5px;
    letter-spacing: 0.02em;
}

.section-header::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right,
            rgba(37, 99, 235, 0) 0%,
            rgba(37, 99, 235, 0.4) 20%,
            rgba(37, 99, 235, 0.4) 80%,
            rgba(37, 99, 235, 0) 100%);
    margin-top: 0;
}

.report-card:hover .report-icon {
    transform: scale(1.1) translateY(-5px);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.report-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #94a3b8;
    /* Slate color like TUESDAY */
    text-align: center;
    transition: color 0.3s ease;
    order: -1;
    /* Move title above icon if desired, or keep below. Let's try order: -1 */
}

.report-card:hover .report-title {
    color: #ffffff;
}

/* Category specific icon colors can remain subtle if needed, but background is unified */
.daily-report .report-icon {
    opacity: 0.9;
}

.health-report .report-icon {
    opacity: 0.9;
}

.physical-report .report-icon {
    opacity: 0.9;
}

.fitness-report .report-icon {
    opacity: 0.9;
}

.practice-report .report-icon {
    opacity: 0.9;
}

.statistics-report .report-icon {
    opacity: 0.9;
}


/* Hover effects for non-center cards */
.date-card:not(.center):hover {
    background: linear-gradient(145deg, #ffffff 0%, #e8ecf4 100%);
}

/* Today badge */
.today-badge {
    position: absolute;
    bottom: 12px;
    font-size: 0.6em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .date-card.adjacent-4 {
        display: none;
    }
}

@media (max-width: 700px) {
    .date-card.adjacent-3 {
        display: none;
    }
}

@media (max-width: 550px) {
    .date-card.adjacent-2 {
        display: none;
    }

    .date-card.center {
        width: 140px;
        height: 160px;
    }
}

/* Final UI Cleanup - Ensuring no frames on nav icons */
.admin-btn,
.lang-btn {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
}

.admin-btn svg {
    display: block;
}

/* Custom Notification / Toast UI */
.toast-container {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: #ffffff;
    color: #1e293b;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 300px;
    border-left: 5px solid #3b82f6;
    animation: toastSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.toast.success {
    border-left-color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.warning {
    border-left-color: #f59e0b;
}

@keyframes toastSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

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

.toast.fade-out {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Extended Actions Styling - Handled above in .action-btn section */

.action-btn.active-status {
    color: #10b981;
}

.table-actions-cell {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Athlete Card Enhancements */
.player-card {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    gap: 12px;
    align-items: center;
}

.player-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.player-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.player-card-age {
    font-size: 0.75rem;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
}

.player-card-jersey {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #2563eb;
    color: white;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
    z-index: 2;
}

/* Permission Modal Specific Styles */
.perm-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    padding: 2px 0;
    transition: all 0.2s ease;
}

.perm-checkbox-label:hover {
    color: #1e293b;
}

.perm-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    accent-color: #2563eb;
    transition: all 0.2s ease;
}

.perm-checkbox-label input[type="checkbox"]:checked {
    border-color: #2563eb;
}

/* Modal Enhancements */
#userPermissionsModal .modal-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.01em;
}

#userPermissionsModal .modal-content {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: none;
}

/* Mention Suggestions Dropdown */
#mentionSuggestions {
    position: fixed;
    z-index: 9999;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    width: 250px;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    padding: 8px;
}

/* Compact User Table Styles */
@media (min-width: 1024px) {
    .user-list-section {
        overflow-x: hidden;
        /* Try to contain it */
    }

    table {
        table-layout: fixed;
        width: 100%;
    }

    th,
    td {
        padding: 12px 8px;
        /* Reduced horizontal padding */
        font-size: 0.85rem;
    }

    /* Specific column widths */
    th:nth-child(1),
    td:nth-child(1) {
        width: 18%;
    }

    /* Name */
    th:nth-child(2),
    td:nth-child(2) {
        width: 12%;
    }

    /* Username */
    th:nth-child(3),
    td:nth-child(3) {
        width: 8%;
        text-align: center;
    }

    /* Notif */
    th:nth-child(4),
    td:nth-child(4) {
        width: 12%;
    }

    /* Club */
    th:nth-child(5),
    td:nth-child(5) {
        width: 10%;
    }

    /* Season */
    th:nth-child(6),
    td:nth-child(6) {
        width: 10%;
    }

    /* Role */
    th:nth-child(7),
    td:nth-child(7) {
        width: 8%;
    }

    /* Duration */
    th:nth-child(8),
    td:nth-child(8) {
        width: 8%;
    }

    /* Status */
    th:nth-child(9),
    td:nth-child(9) {
        width: 14%;
    }

    /* Actions */

    .table-actions-cell {
        gap: 4px;
        /* Tighter gap */
        justify-content: flex-start;
    }

    .action-btn svg {
        width: 16px;
        height: 16px;
        pointer-events: none;
        /* Ensure click goes to button */
    }
}

/* Utility Class for Oval Shapes */
.oval-box {
    border-radius: 40px !important;
}

/* Ensure Action Buttons have pointer events on the button, not SVG */
.action-btn {
    position: relative;
    z-index: 10;
}

.mention-item {
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #334155;
    transition: all 0.2s ease;
}

.mention-item:hover,
.mention-item.active {
    background-color: #f1f5f9;
    color: #2563eb;
}

.mention-item .mention-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.mention-item .mention-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Mentions / Highlights in content */
.mention {
    display: inline-block;
    background-color: rgba(147, 51, 234, 0.1);
    color: #9333ea;
    padding: 2px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85em;
    border: 1px solid rgba(147, 51, 234, 0.2);
    margin: 0 2px;
    vertical-align: baseline;
    line-height: 1.4;
}

.mention-group {
    background-color: rgba(147, 51, 234, 0.1);
    color: #9333ea;
    border-color: rgba(147, 51, 234, 0.2);
}

.mention-avatar-placeholder.group {
    background: #fdf2f8;
    color: #ec4899;
    font-size: 1.1rem;
}

/* Modern Inline Editor */
.inline-edit-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    margin-top: 2px;
    position: relative;
}

.inline-editor {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    color: inherit;
    line-height: 1.6;
    padding: 0;
    margin: 0;
    resize: none;
    overflow: hidden;
    min-height: 1.6em;
    width: 100%;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.inline-editor:focus {
    border-bottom: 2px solid #2563eb;
}

.save-checkmark-btn {
    flex: 0 0 24px;
    height: 24px;
    border-radius: 50%;
    background: #10b981;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
    padding: 0;
    margin-top: 2px;
    margin-right: -4px;
    /* Push it to the absolute far right within the padded container */
}

.save-checkmark-btn:hover {
    transform: scale(1.15);
    background: #059669;
}

.save-checkmark-btn:active {
    transform: scale(0.95);
}

.save-checkmark-btn svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Custom Confirmation Modal */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    animation: fadeIn 0.15s ease-out;
}

.confirm-modal {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid #f1f5f9;
}

.confirm-modal-overlay.active {
    display: flex;
}

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

.confirm-icon {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.1);
}

.confirm-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.confirm-message {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 28px;
    line-height: 1.6;
}

.confirm-actions {
    display: flex;
    gap: 12px;
}

.confirm-btn {
    flex: 1;
    padding: 14px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 0.95rem;
}

.confirm-btn-cancel {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.confirm-btn-cancel:hover {
    background: #f1f5f9;
    color: #334155;
}

.confirm-btn-delete {
    background: #2563eb;
    color: white;
}

.confirm-btn-delete:hover {
    background: #1d4ed8;
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

/* Blue Theme for Logout */
.confirm-modal.blue-theme .confirm-icon {
    background: #eff6ff;
    color: #2563eb;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.1);
}

.confirm-modal.blue-theme .confirm-btn-delete {
    background: #2563eb;
}

.confirm-modal.blue-theme .confirm-btn-delete:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Notification Panel & Admin Layout Updates */
#notifDropdown {
    transition: opacity 0.1s ease, transform 0.1s ease, visibility 0.1s;
    /* Faster transition */
    will-change: transform, opacity;
}

/* Admin Notification Panel Fixes */
.admin-notif-composer {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-notif-row {
    display: flex;
    gap: 15px;
    width: 100%;
}

.admin-notif-group {
    flex: 1;
    /* Make inputs take full available width */
    display: flex;
    flex-direction: column;
}

.admin-notif-group select,
.admin-notif-group input,
.admin-notif-group textarea {
    width: 100%;
    /* Force full width */
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
}

.admin-notif-group textarea {
    min-height: 120px;
    /* Taller text area */
    resize: vertical;
}

@media (max-width: 768px) {
    .admin-notif-row {
        flex-direction: column;
    }
}

/* Notification Badge & Dropdown */
.notification-wrapper {
    position: relative;
    display: inline-block;
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background-color: #ef4444;
    /* Red color */
    border-radius: 50%;
    border: 2px solid #ffffff;
    display: none;
    /* Hidden by default */
    z-index: 10;
}

.notif-badge.active {
    display: block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 5px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.notification-wrapper {
    position: relative;
    display: inline-block;
}

.notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    z-index: 1000;
    display: none;
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
}

.notif-dropdown.open {
    display: block !important;
    z-index: 999999 !important;
}

.notif-dropdown-header {
    padding: 12px 15px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 700;
    font-size: 0.9rem;
    color: #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-dropdown-content {
    max-height: 400px;
    overflow-y: auto;
}

.notif-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.notif-item:hover {
    background: #f8fafc;
}

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

.notif-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.notif-item-target {
    font-size: 0.7rem;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
}

.notif-item-time {
    font-size: 0.65rem;
    color: #94a3b8;
}

.notif-item-body {
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.4;
}

.no-notifs {
    padding: 30px 15px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* Notification Types Styles */
.notif-type-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 8px;
}

.notif-type-info {
    background: #e0f2fe;
    color: #0369a1;
}

.notif-type-announcement {
    background: #fef3c7;
    color: #92400e;
}

.notif-type-match {
    background: #dcfce7;
    color: #166534;
}

.notif-type-training {
    background: #f3e8ff;
    color: #6b21a8;
}

.notif-type-health {
    background: #fee2e2;
    color: #991b1b;
}

/* History Actions */
.notif-history-item {
    position: relative;
    transition: all 0.2s;
}

.notif-history-item:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    background: #f1f5f9 !important;
}

.notif-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
}

.notif-action-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #64748b;
}

.notif-action-btn:hover {
    transform: scale(1.1);
}

.notif-action-btn.edit:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.notif-action-btn.delete:hover {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fee2e2;
}

.notif-action-btn svg {
    width: 14px;
    height: 14px;
}

/* Interactive Notifications */
.notif-interactive-content {
    margin-top: 8px;
    padding: 8px 0;
}

.vote-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.star-rating {
    display: flex;
    gap: 2px;
    justify-content: center;
    width: 100%;
}

.star-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    width: 26px;
    height: 36px;
    /* Increased height */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 0;
}

.star-char {
    font-size: 2.2rem;
    /* Taller look */
    color: #cbd5e1;
    line-height: 1;
    transition: all 0.2s;
}

.star-num {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.65rem;
    font-weight: 800;
    color: #475569;
    pointer-events: none;
    transition: all 0.2s;
}

.star-btn:hover {
    transform: scale(1.2);
}

.star-btn:hover .star-char {
    color: #fbbf24;
}

.star-btn.active .star-char {
    color: #fbbf24;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.4));
}

.star-btn.active .star-num {
    color: #92400e;
}

/* Extra focus on the specifically selected star */
.star-btn.selected {
    transform: scale(1.45);
    /* Prominently larger */
    z-index: 5;
}

.star-btn.selected .star-char {
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
}

.text-response-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notif-textarea {
    width: 100%;
    min-height: 60px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.85rem;
    resize: vertical;
    background: white;
}

.notif-submit-btn {
    align-self: flex-end;
    padding: 6px 16px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.notif-submit-btn:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.25);
}

.response-submitted {
    font-size: 0.85rem;
    color: #059669;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

/* Hyper-Realistic "Bulging Cam" Glassmorphism Styles */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 50%, #1e2a5e 0%, #0c0f1d 100%);
    transition: opacity 0.5s ease;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

/* Background animated glow */
.login-screen::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.4), transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.3), transparent 40%);
    filter: blur(80px);
    z-index: 1;
}


/* ==========================================================================
   FINAL CONSOLIDATED CARD STYLES (ATHLETES & STAFF)
   ========================================================================== */
.player-card {
    background: white !important;
    border-radius: 20px !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    /* Stretch content to fill width */
    padding: 0 !important;
    /* Image must touch edges */
    width: 170px !important;
    height: 400px !important;
    /* Fixed height for consistency */
    position: relative !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

.player-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
    border-color: #3b82f6 !important;
}

/* Ensure images and placeholders fill the width perfectly */
.player-card-img {
    width: 100% !important;
    height: 220px !important;
    min-height: 220px !important;
    object-fit: cover !important;
    background: #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 3rem !important;
    /* For the 👤 emoji */
    border-radius: 0 !important;
    /* Reset any internal radius */
    margin: 0 !important;
}

/* Content Area */
.player-card-info {
    padding: 16px 12px !important;
    text-align: center !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    background: white !important;
    border-top: 1px solid #f1f5f9 !important;
}

.player-card-name {
    display: block !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.2 !important;
    margin-bottom: 4px !important;
    text-transform: uppercase !important;
}

.player-card-position {
    font-size: 0.75rem !important;
    color: #2563eb !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 6px !important;
}

.player-card-meta-line {
    margin-top: auto !important;
    padding-top: 8px !important;
    border-top: 1px dashed #e2e8f0 !important;
    font-size: 0.7rem !important;
    color: #64748b !important;
    font-weight: 600 !important;
}

/* Jersey badge override */
.player-card-jersey {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    background: rgba(37, 99, 235, 0.9) !important;
    backdrop-filter: blur(4px) !important;
    color: white !important;
    padding: 3px 8px !important;
    border-radius: 8px !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    z-index: 10 !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2) !important;
}

.hidden {
    display: none !important;
}

/* Global Archive Filter Styles */
.archive-filter-panel {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    padding: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.archive-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.archive-filter-group label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.archive-filter-group input,
.archive-filter-group select {
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    background: white;
    color: #1e293b;
    outline: none;
    transition: all 0.2s ease;
    min-width: 140px;
}

.archive-filter-group input:focus,
.archive-filter-group select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.archive-search-btn {
    background: #3b82f6;
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    height: 44px;
}

.archive-search-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.archive-results-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: #fefefe;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.archive-day-group {
    margin-bottom: 8px;
}

.archive-day-header {
    font-size: 0.9rem;
    font-weight: 800;
    color: #1e293b;
    padding: 8px 16px;
    background: #f1f5f9;
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.archive-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.archive-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.archive-card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

.archive-card-category {
    color: #3b82f6;
    text-transform: uppercase;
}

.archive-card-author {
    color: #64748b;
}

.archive-card-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #334155;
}

.login-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.glass-card {
    position: relative;
    z-index: 10;
    width: 450px;
    padding: 3.5rem 3rem;
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(35px) saturate(160%);
    -webkit-backdrop-filter: blur(35px) saturate(160%);
    border-radius: 50px;

    /* THE BULGING BOX EFFECT: Multiple layers of definition */
    border: 1px solid rgba(255, 255, 255, 0.1);

    /* Specular Edge Highlights (Bright white lines) */
    border-top: 1.5px solid rgba(255, 255, 255, 0.45);
    border-left: 1.5px solid rgba(255, 255, 255, 0.25);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

    /* Depth and Refraction Shadowing */
    box-shadow:
        0 50px 100px -20px rgba(0, 0, 0, 0.7),
        inset 0 0 40px rgba(255, 255, 255, 0.02),
        inset 0 20px 30px rgba(255, 255, 255, 0.08),
        inset 0 -10px 20px rgba(0, 0, 0, 0.2);

    /* Glossy Finish Gradient */
    background-image: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0) 50%,
            rgba(255, 255, 255, 0.02) 100%);
}

.login-logo {
    margin-bottom: 2.5rem;
}

.logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 0.5rem;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 0.5rem;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.welcome-text h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.welcome-text p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 3rem;
}

.login-form-group {
    text-align: left;
    margin-bottom: 1.8rem;
}

.login-form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    color: rgba(255, 255, 255, 0.55);
    padding-left: 1.25rem;
    font-weight: 500;
}

.login-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    /* Pill shape */
    padding: 1.1rem 1.75rem;
    color: white;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;

    /* 3D Glass input feel */
    box-shadow:
        inset 0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 -4px 8px rgba(255, 255, 255, 0.02),
        0 2px 10px rgba(0, 0, 0, 0.05);
}

.login-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow:
        inset 0 4px 10px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(255, 255, 255, 0.1);
}

.forgot-link {
    display: block;
    text-align: right;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    margin-top: -0.5rem;
    margin-bottom: 2.5rem;
    padding-right: 1.5rem;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.login-submit-btn {
    width: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    padding: 1.1rem;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 30px -5px rgba(59, 130, 246, 0.4);
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.login-submit-btn:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 25px 45px -5px rgba(59, 130, 246, 0.6);
    filter: brightness(1.1);
}

.social-login {
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.social-login span {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-weight: 600;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-btn {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transform: translateY(-3px) rotate(5deg);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

/* Weekly Schedule Grid Styles */
.weekly-grid-container {
    overflow-x: auto;
    background: white;
}

.weekly-grid {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.weekly-grid th {
    background: #1e293b !important;
    color: white !important;
    text-align: center;
    padding: 10px 5px;
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid #334155;
}

.weekly-grid td {
    border: 1px solid #e2e8f0;
    padding: 0;
    vertical-align: top;
}

.weekly-grid .day-header {
    background: #f8fafc;
    color: #475569;
    font-size: 0.7rem;
    text-align: center;
    padding: 5px;
    font-weight: 800;
}

.weekly-grid .period-header {
    background: #f1f5f9;
    font-weight: 800;
    color: #1e293b;
    width: 30px !important;
    max-width: 30px !important;
    text-align: center;
    padding: 0 !important;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    border-right: 1px solid #cbd5e1;
    overflow: hidden;
}

.weekly-grid .period-v-text {
    display: block;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    margin: 0 auto;
}

.weekly-grid .grid-cell,
.weekly-grid .weekly-cell {
    /* Height is now controlled by the parent <tr> percentage (42%) */
    transition: background 0.15s ease-in-out;
    cursor: text;
    position: relative;
    padding: 0;
}

.weekly-grid .weekly-cell:hover {
    background: #f1f7fe !important;
}

.weekly-grid .grid-cell-input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: white !important;
    resize: none;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #000000 !important;
    padding: 8px;
    z-index: 20;
    box-shadow: inset 0 0 0 2px #2563eb;
    display: none;
    position: absolute;
    top: 0;
    left: 0;
}

.weekly-grid .grid-cell-input::placeholder {
    color: #cbd5e1;
    font-size: 0.7rem;
    font-weight: 400;
}

.cell-rendered-content {
    width: 100%;
    height: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: transparent;
    pointer-events: none;
    overflow: hidden;
}

.weekly-grid .week-info-cell {
    background: #f8fafc !important;
    font-weight: 800;
    text-align: center;
    font-size: 0.6rem;
    color: #64748b;
    padding: 2px !important;
    width: 30px !important;
    max-width: 30px !important;
    overflow: hidden;
}

/* Week Navigation Controls */
#prevWeekBtn:hover,
#nextWeekBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

#prevWeekBtn:active,
#nextWeekBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

#weekNumberInput:hover {
    border-color: #2563eb;
}

#weekNumberInput:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Remove spinner from number input */
#weekNumberInput::-webkit-inner-spin-button,
#weekNumberInput::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

#weekNumberInput {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Underline Tabs Design */
.report-tabs-container {
    display: flex;
    align-items: center;
    gap: 24px;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 12px;
    padding: 0 4px;
}

.mode-btn {
    background: none;
    border: none;
    padding: 12px 2px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #94a3b8;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    outline: none;
}

.mode-btn.active {
    color: #2563eb;
}

.mode-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #2563eb;
    border-radius: 3px 3px 0 0;
}

.mode-btn:hover:not(.active) {
    color: #64748b;
}

.hidden {
    display: none !important;
}