/**
 * Dashboard Shared Styles
 * Consistent styling for user and admin dashboards
 */

/* ==========================================================================
   App Navbar
   ========================================================================== */
.app-navbar {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

/* Sticky sidebars also use Bootstrap .sticky-top (z-index 1020); keep navbar above them when main.js adds .sticky-top */
.app-navbar.sticky-top {
    z-index: 1030;
}

.app-navbar .navbar-brand {
    padding: 1rem 0;
}

.app-navbar .navbar-brand img {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.app-navbar .navbar-nav {
    align-items: center;
}

.app-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.75rem 1rem !important;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 0 2px;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}

.app-navbar .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15);
}

.app-navbar .dropdown-menu {
    background: #1a1a2e !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    padding: 0.5rem !important;
    margin-top: 0.5rem !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
}

.app-navbar .dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 0.6rem 1rem !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease !important;
    background: transparent !important;
}

.app-navbar .dropdown-menu .dropdown-item:hover,
.app-navbar .dropdown-menu .dropdown-item:focus,
.app-navbar .dropdown-menu .dropdown-item:active {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.app-navbar .btn-logout {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #ff6b6b !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-left: 0.5rem;
    transition: all 0.2s ease;
}

.app-navbar .btn-logout:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff !important;
}

.app-navbar .club-selector-wrapper {
    margin-right: 0.5rem;
}

.app-navbar .club-selector-select,
.club-selector-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 2.25rem 0.5rem 1rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba(255,255,255,0.7)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    transition: all 0.2s ease;
    min-width: 140px;
}

.app-navbar .club-selector-select:hover,
.club-selector-select:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.app-navbar .club-selector-select:focus,
.club-selector-select:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
}

.app-navbar .club-selector-select option,
.club-selector-select option {
    background: #1a1a2e;
    color: #fff;
    padding: 0.5rem;
}

.app-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
    padding: 0.5rem 0.75rem;
}

.app-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    .app-navbar .navbar-collapse {
        background: rgba(26, 26, 46, 0.98);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .app-navbar .navbar-nav {
        align-items: stretch;
    }
    
    .app-navbar .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    .app-navbar .club-selector-wrapper {
        margin: 0.5rem 0;
        width: 100%;
    }
    
    .app-navbar .btn-logout {
        margin: 0.5rem 0;
        text-align: center;
        display: block;
    }
}

/* ==========================================================================
   CSS Variables for Dashboard
   ========================================================================== */
:root {
    --dashboard-heading-color: #1a1a2e;
    --dashboard-text-color: #495057;
    --dashboard-text-muted: #6c757d;
    --dashboard-card-bg: #fff;
    --dashboard-card-border: rgba(0, 0, 0, 0.08);
    --dashboard-card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --dashboard-card-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
    --dashboard-link-color: #19409A;
    --dashboard-success: #198754;
    --dashboard-warning: #ffc107;
    --dashboard-danger: #dc3545;
    --dashboard-info: #0dcaf0;
}

/* ==========================================================================
   Page Header
   ========================================================================== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-header h1 {
    color: var(--dashboard-heading-color);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.dashboard-sync-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dashboard-text-muted);
    font-size: 0.9rem;
}

.dashboard-sync-info i {
    color: var(--dashboard-success);
}

/* ==========================================================================
   Stats Cards Row
   ========================================================================== */
.dashboard-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-stat-card {
    background: linear-gradient(135deg, var(--bs-secondary) 0%, #0d2d6b 100%);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(25, 64, 154, 0.3);
}

.dashboard-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: #fff;
}

.dashboard-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.dashboard-stat-label {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.9rem;
}

/* ==========================================================================
   Dashboard Cards (Generic)
   ========================================================================== */
.dashboard-card {
    background: var(--dashboard-card-bg);
    border-radius: 15px;
    box-shadow: var(--dashboard-card-shadow);
    border: 1px solid var(--dashboard-card-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.dashboard-card:hover {
    box-shadow: var(--dashboard-card-shadow-hover);
}

.dashboard-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--dashboard-card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-card-header h3,
.dashboard-card-header h4,
.dashboard-card-header h5 {
    color: var(--dashboard-heading-color);
    font-weight: 700;
    margin: 0;
    font-size: 1.1rem;
}

.dashboard-card-header .badge {
    font-size: 0.75rem;
}

.dashboard-card-body {
    padding: 1.5rem;
}

.dashboard-card-body p {
    color: var(--dashboard-text-color);
}

/* ==========================================================================
   Dashboard Tables
   ========================================================================== */
.dashboard-table {
    width: 100%;
    margin: 0;
}

.dashboard-table thead th {
    background: #f8f9fa;
    color: var(--dashboard-heading-color);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.875rem 1rem;
    border-bottom: 2px solid #e9ecef;
}

.dashboard-table tbody td,
.dashboard-table tfoot td {
    padding: 0.875rem 1rem;
    color: var(--dashboard-text-color);
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
}

.dashboard-table tbody tr:hover {
    background: #f8f9fa;
}

.dashboard-table tbody tr:last-child td {
    border-bottom: none;
}

.dashboard-table .text-muted {
    color: var(--dashboard-text-muted) !important;
}

/* Progress bars in tables */
.dashboard-table .progress {
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
}

.dashboard-table .progress-bar {
    border-radius: 4px;
}

/* ==========================================================================
   Quick Action Cards
   ========================================================================== */
.dashboard-action-card {
    background: var(--dashboard-card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--dashboard-card-shadow);
    border: 1px solid var(--dashboard-card-border);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dashboard-action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--dashboard-card-shadow-hover);
    border-color: var(--bs-secondary);
}

.dashboard-action-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--bs-secondary) 0%, #0d2d6b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.dashboard-action-card h4 {
    color: var(--dashboard-heading-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dashboard-action-card h4 a {
    color: var(--dashboard-heading-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.dashboard-action-card h4 a:hover {
    color: var(--dashboard-link-color);
}

.dashboard-action-card p {
    color: var(--dashboard-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.dashboard-action-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

.dashboard-action-card .btn-link {
    color: var(--dashboard-link-color);
    font-weight: 600;
    padding: 0;
    text-decoration: none;
}

.dashboard-action-card .btn-link:hover {
    color: var(--bs-secondary);
    text-decoration: underline;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.dashboard-section-header {
    margin-bottom: 1.5rem;
}

.dashboard-section-header h2 {
    color: var(--dashboard-heading-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.dashboard-section-header p {
    color: var(--dashboard-text-muted);
    margin: 0.5rem 0 0;
}

/* ==========================================================================
   Status Badges
   ========================================================================== */
.badge-requested {
    background: #ffc107;
    color: #000;
}

.badge-pc-updating {
    background: #17a2b8;
    color: #fff;
}

.badge-declined {
    background: #dc3545;
    color: #fff;
}

.badge-completed {
    background: #198754;
    color: #fff;
}

/* ==========================================================================
   Empty States
   ========================================================================== */
.dashboard-empty {
    text-align: center;
    padding: 2rem;
    color: var(--dashboard-text-muted);
}

.dashboard-empty i {
    font-size: 2.5rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.dashboard-empty p {
    margin: 0;
    font-size: 0.95rem;
}

/* ==========================================================================
   Activity/Changes List
   ========================================================================== */
.dashboard-activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f3f4;
}

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

.dashboard-activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--dashboard-link-color);
}

.dashboard-activity-content {
    flex-grow: 1;
    min-width: 0;
}

.dashboard-activity-content strong {
    color: var(--dashboard-heading-color);
    font-weight: 600;
}

.dashboard-activity-content p {
    margin: 0;
    color: var(--dashboard-text-color);
    font-size: 0.9rem;
}

.dashboard-activity-content small {
    color: var(--dashboard-text-muted);
    font-size: 0.8rem;
}

/* ==========================================================================
   Grid Layout
   ========================================================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 1199.98px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.dashboard-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Admin dashboard uses smaller cards */
.dashboard-actions-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-dashboard-heading {
    color: var(--dashboard-heading-color) !important;
}

.text-dashboard-body {
    color: var(--dashboard-text-color) !important;
}

.text-dashboard-muted {
    color: var(--dashboard-text-muted) !important;
}

.text-dashboard-link {
    color: var(--dashboard-link-color) !important;
}

/* Fix for existing feature-item styles */
.feature-item {
    background: var(--dashboard-card-bg);
    border-radius: 15px;
    box-shadow: var(--dashboard-card-shadow);
    border: 1px solid var(--dashboard-card-border);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--dashboard-card-shadow-hover);
    border-color: var(--bs-secondary);
}

.feature-item .feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--bs-secondary) 0%, #0d2d6b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item .feature-icon i {
    font-size: 1.5rem;
}

.feature-item .h4,
.feature-item h4 {
    color: var(--dashboard-heading-color);
    font-weight: 700;
    text-decoration: none;
}

.feature-item .h4:hover,
.feature-item h4 a:hover {
    color: var(--dashboard-link-color);
}

.feature-item p {
    color: var(--dashboard-text-muted);
    font-size: 0.9rem;
}

.feature-item .btn.text-secondary {
    color: var(--dashboard-link-color) !important;
    font-weight: 600;
}

.feature-item .btn.text-secondary:hover {
    color: var(--bs-secondary) !important;
}

/* ==========================================================================
   What's New Button (Navbar)
   ========================================================================== */
.btn-whats-new {
    background: linear-gradient(135deg, #00D1F9 0%, #19409A 100%);
    border: none;
    color: #fff !important;
    padding: 0.5rem 1rem !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-whats-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 209, 249, 0.4);
    color: #fff !important;
}

.btn-whats-new .badge {
    font-size: 0.65rem;
    padding: 0.25em 0.5em;
}

/* ==========================================================================
   Condensed Metrics Bar
   ========================================================================== */
.dashboard-metrics-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.metric-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.metric-pill:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.metric-pill i {
    color: #19409A;
    font-size: 0.9rem;
}

.metric-pill .metric-value {
    font-weight: 700;
    color: #1a1a2e;
}

.metric-pill .metric-label {
    color: #6c757d;
    font-size: 0.85rem;
}

.metric-pill.metric-danger {
    border-color: #dc3545;
    background: #fff5f5;
}

.metric-pill.metric-danger i,
.metric-pill.metric-danger .metric-value {
    color: #dc3545;
}

.metric-pill.metric-warning {
    border-color: #fd7e14;
    background: #fff8f0;
}

.metric-pill.metric-warning i,
.metric-pill.metric-warning .metric-value {
    color: #fd7e14;
}

/* ==========================================================================
   Feature Announcement Banner
   ========================================================================== */
.feature-announcement-banner {
    background: linear-gradient(135deg, #00D1F9 0%, #19409A 100%);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    transition: all 0.2s ease;
}

.feature-announcement-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 209, 249, 0.3);
}

.feature-announcement-banner .announcement-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-announcement-banner .text-white-75 {
    color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   Dashboard Layout (2 Column)
   ========================================================================== */
.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
    align-items: start;
}

.dashboard-col-left {
    min-width: 0;
}

.dashboard-col-center {
    min-width: 0;
}

@media (max-width: 991.98px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Action Center
   ========================================================================== */
.action-center-card {
    height: auto !important;
}

.action-center-card .dashboard-card-body {
    padding: 0;
}

.action-section {
    border-bottom: 1px solid #e9ecef;
}

.action-section:last-child {
    border-bottom: none;
}

.action-section-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.action-section-header:hover {
    background: #f8f9fa;
}

.action-section-header .section-indicator {
    width: 4px;
    height: 24px;
    border-radius: 2px;
    margin-right: 0.75rem;
}

.action-section-header .section-indicator.section-danger {
    background: #dc3545;
}

.action-section-header .section-indicator.section-warning {
    background: #fd7e14;
}

.action-section-header .section-indicator.section-info {
    background: #6c757d;
}

.action-section-header .section-title {
    font-weight: 600;
    color: #1a1a2e;
}

.action-section-header .section-chevron {
    color: #6c757d;
    transition: transform 0.2s ease;
}

.action-section-header:not(.collapsed) .section-chevron {
    transform: rotate(180deg);
}

.action-section-body {
    padding: 0 1.25rem 1rem;
}

.action-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.action-item:last-child {
    margin-bottom: 0;
}

.action-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.action-item.needs-action {
    background: #fff3cd;
    border: 1px solid #ffc107;
}

.action-empty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    padding: 0.5rem;
}

.action-empty i {
    font-size: 1rem;
}

/* Conflict specific styles */
.conflict-fixtures {
    margin-top: 0.75rem;
}

.conflict-fixture-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: #fff;
    border-radius: 6px;
    margin-bottom: 0.25rem;
}

.conflict-fixture-row:last-child {
    margin-bottom: 0;
}

.conflict-fixture-row .fixture-info {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
}

.conflict-fixture-row .fixture-time {
    font-weight: 600;
    color: #1a1a2e;
}

.conflict-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

/* ==========================================================================
   Rearrange Button
   ========================================================================== */
.btn-rearrange {
    background: linear-gradient(135deg, #00D1F9 0%, #19409A 100%);
    border: none;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-rearrange:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 209, 249, 0.4);
    color: #fff;
}

/* ==========================================================================
   Slot Table Styles
   ========================================================================== */
.slot-table th.month-end,
.slot-table td.month-end {
    border-right: 2px solid #dee2e6 !important;
}

.slot-table tfoot tr {
    background: #fff5f5;
}

.slot-table tfoot tr td:first-child {
    border-top: 2px solid #dee2e6;
}

.slot-table tfoot td {
    border-top: 2px solid #dee2e6;
    border-bottom: none !important;
}

.slot-badge {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.slot-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Chart Legend
   ========================================================================== */
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    color: #495057;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* ==========================================================================
   Invite Members Card (Compact)
   ========================================================================== */
.invite-members-card {
    height: auto !important;
}

.invite-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #1a1a2e;
    transition: background 0.2s ease;
}

.invite-header:hover {
    background: #f8f9fa;
}

.invite-header .section-chevron {
    color: #6c757d;
    transition: transform 0.2s ease;
}

.invite-header:not(.collapsed) .section-chevron {
    transform: rotate(180deg);
}

.invite-body {
    padding: 0 1rem 1rem;
}

/* ==========================================================================
   Recent Changes List
   ========================================================================== */
.recent-changes-list {
    max-height: 300px;
    overflow-y: auto;
}

.recent-change-item {
    padding: 0.625rem 1rem;
    border-bottom: 1px solid #f1f3f4;
}

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

.recent-change-item:hover {
    background: #f8f9fa;
}

.recent-change-fixture {
    font-size: 0.85rem;
    line-height: 1.4;
}

.recent-change-fixture strong {
    color: var(--dashboard-heading-color);
}

.recent-change-meta {
    font-size: 0.75rem;
    color: var(--dashboard-text-muted);
    margin-top: 0.125rem;
}

.btn-view-changes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    margin-left: 0.375rem;
    font-size: 0.7rem;
    color: var(--dashboard-text-muted);
    background: transparent;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s ease;
    vertical-align: middle;
}

.btn-view-changes:hover {
    background: var(--dashboard-link-color);
    border-color: var(--dashboard-link-color);
    color: #fff;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 767.98px) {
    .dashboard-metrics-bar {
        flex-direction: column;
    }
    
    .metric-pill {
        width: 100%;
        justify-content: center;
    }
    
    .dashboard-header h1 {
        font-size: 1.5rem;
    }
}
