/* ----------------------------------------------------
   The Racquet Avengers split | Premium Styling System
   ---------------------------------------------------- */

/* Design Tokens */
:root {
    --bg-main: #0B0F19;
    --bg-card: rgba(17, 24, 39, 0.65);
    --bg-card-hover: rgba(23, 33, 53, 0.75);
    
    /* Harmonious HSL Accent Colors */
    --accent-emerald: 155, 100%, 48%; /* #00f5a0 */
    --accent-cyan: 187, 100%, 48%;    /* #00d9f5 */
    --accent-purple: 263, 80%, 62%;
    --accent-orange: 27, 96%, 61%;
    --accent-red: 350, 89%, 60%;
    
    /* Text Color Palette */
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    
    /* Border and Shadow Tokens */
    --border-color: rgba(255, 255, 255, 0.07);
    --border-focus: hsla(var(--accent-emerald), 0.5);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px hsla(var(--accent-emerald), 0.15);
    
    /* Font Families */
    --font-header: 'Outfit', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Ambient Radial Glow Background */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
    background: 
        radial-gradient(circle at 10% 20%, hsla(var(--accent-purple), 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 15%, hsla(var(--accent-cyan), 0.08) 0%, transparent 35%),
        radial-gradient(circle at 50% 85%, hsla(var(--accent-emerald), 0.07) 0%, transparent 45%);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Helpers */
.gradient-text {
    background: linear-gradient(135deg, hsl(var(--accent-emerald)), hsl(var(--accent-cyan)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-success { color: hsl(var(--accent-emerald)) !important; }
.text-warning { color: hsl(var(--accent-orange)) !important; }
.text-danger { color: hsl(var(--accent-red)) !important; }
.text-right { text-align: right; }

/* Header Styling */
.header {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    background: rgba(11, 15, 25, 0.7);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-icon {
    width: 32px;
    height: 32px;
    color: hsl(var(--accent-emerald));
    filter: drop-shadow(0 0 8px hsla(var(--accent-emerald), 0.5));
}

.logo-text {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.5px;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Main Content Area */
.main {
    flex: 1;
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Grids & Cards */
.grid {
    display: grid;
    gap: 24px;
    margin-bottom: 24px;
}

.grid-2-col {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-2-col {
        grid-template-columns: 1fr 1fr;
    }
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

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

.card-title {
    font-family: var(--font-header);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Toggle Buttons */
.toggle-container {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.toggle-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-btn:hover {
    color: var(--text-primary);
}

.toggle-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-sm);
}

/* Forms Styling */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

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

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: var(--font-body);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px hsla(var(--accent-emerald), 0.15);
}

.input-suffix {
    position: absolute;
    right: 14px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    pointer-events: none;
}

.form-input:focus + .input-suffix {
    color: hsl(var(--accent-emerald));
}

.table-input-wrapper {
    max-width: 125px;
}

.table-input-wrapper .form-input.table-input {
    padding: 6px 36px 6px 10px;
    height: 32px;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.4);
}

.table-input-wrapper .input-suffix {
    right: 10px;
    font-size: 11px;
}

.form-error {
    display: none;
    font-size: 12px;
    color: hsl(var(--accent-red));
    margin-top: 4px;
}

/* Interactive cost output */
.calculated-total {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.total-value {
    font-family: var(--font-header);
    font-size: 22px;
    font-weight: 700;
    color: hsl(var(--accent-emerald));
}

/* Buttons styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.btn:active {
    transform: scale(0.97);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, hsl(var(--accent-emerald)), hsl(var(--accent-cyan)));
    color: #042f1d;
    font-weight: 600;
    box-shadow: 0 4px 15px -3px hsla(var(--accent-emerald), 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px -3px hsla(var(--accent-emerald), 0.5), var(--shadow-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.form-actions .btn {
    flex: 1;
}

/* Metrics Dashboard Styling */
.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-icon svg {
    width: 22px;
    height: 22px;
}

/* Accent Glow Colors for Metrics */
.purple-glow svg { color: hsl(var(--accent-purple)); }
.purple-glow { background: hsla(var(--accent-purple), 0.1); border-color: hsla(var(--accent-purple), 0.2); }

.blue-glow svg { color: hsl(var(--accent-cyan)); }
.blue-glow { background: hsla(var(--accent-cyan), 0.1); border-color: hsla(var(--accent-cyan), 0.2); }

.green-glow svg { color: hsl(var(--accent-emerald)); }
.green-glow { background: hsla(var(--accent-emerald), 0.1); border-color: hsla(var(--accent-emerald), 0.2); }

.orange-glow svg { color: hsl(var(--accent-orange)); }
.orange-glow { background: hsla(var(--accent-orange), 0.1); border-color: hsla(var(--accent-orange), 0.2); }

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

.metric-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.metric-value {
    font-family: var(--font-header);
    font-size: 18px;
    font-weight: 700;
}

/* Ledger Card Header Styling */
.flex-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 768px) {
    .flex-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.header-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}

@media (min-width: 768px) {
    .header-actions {
        width: auto;
    }
}

.btn-action {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 6px;
    flex: 1;
}

@media (min-width: 768px) {
    .btn-action {
        flex: none;
    }
}

.btn-whatsapp {
    background: rgba(0, 245, 160, 0.08);
    border: 1px solid hsla(var(--accent-emerald), 0.2);
    color: hsl(var(--accent-emerald));
}

.btn-whatsapp:hover {
    background: rgba(0, 245, 160, 0.15);
    border-color: hsla(var(--accent-emerald), 0.4);
    box-shadow: 0 0 12px hsla(var(--accent-emerald), 0.1);
}

.btn-danger-outline {
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid hsla(var(--accent-red), 0.2);
    color: hsl(var(--accent-red));
}

.btn-danger-outline:hover {
    background: rgba(244, 63, 94, 0.15);
    border-color: hsla(var(--accent-red), 0.4);
    box-shadow: 0 0 12px hsla(var(--accent-red), 0.1);
}

/* Empty State Styling */
.empty-state {
    padding: 48px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    border: 2px dashed rgba(255, 255, 255, 0.05);
}

.empty-icon {
    font-size: 40px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-state h3 {
    font-family: var(--font-header);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 13px;
    max-width: 320px;
}

/* Ledger Table Styling */
.table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
}

.ledger-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
    min-width: 650px;
}

.ledger-table th,
.ledger-table td {
    padding: 14px 18px;
}

.ledger-table th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.ledger-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.ledger-table tbody tr {
    animation: fadeIn 0.4s ease-out forwards;
}

.ledger-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Table Actions Block */
.badge-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.badge-status.text-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: hsl(var(--accent-orange)) !important;
}

.badge-status.text-success {
    background: rgba(0, 245, 160, 0.1);
    border: 1px solid hsla(var(--accent-emerald), 0.2);
    color: hsl(var(--accent-emerald)) !important;
}

.badge-status.text-muted {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary) !important;
}

.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.btn-icon-only {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon-only:hover {
    color: var(--text-primary);
}

.btn-icon-only.pay:hover {
    background: hsla(var(--accent-emerald), 0.15);
    border-color: hsla(var(--accent-emerald), 0.3);
    color: hsl(var(--accent-emerald));
}

.btn-icon-only.pay.settled {
    background: rgba(0, 245, 160, 0.08);
    border-color: hsla(var(--accent-emerald), 0.15);
    color: hsla(var(--accent-emerald), 0.5);
}

.btn-icon-only.pay.settled:hover {
    background: rgba(0, 245, 160, 0.15);
    border-color: hsla(var(--accent-emerald), 0.3);
    color: hsl(var(--accent-emerald));
}

.btn-icon-only.edit:hover {
    background: hsla(var(--accent-cyan), 0.15);
    border-color: hsla(var(--accent-cyan), 0.3);
    color: hsl(var(--accent-cyan));
}

.btn-icon-only.delete:hover {
    background: hsla(var(--accent-red), 0.15);
    border-color: hsla(var(--accent-red), 0.3);
    color: hsl(var(--accent-red));
}

.btn-icon-only svg {
    width: 16px;
    height: 16px;
}

/* Footer Styling */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    background: rgba(11, 15, 25, 0.9);
    margin-top: auto;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-tagline {
    color: var(--text-muted);
}

/* Toast System */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(11, 15, 25, 0.9);
    border: 1px solid hsla(var(--accent-emerald), 0.3);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg), 0 0 15px hsla(var(--accent-emerald), 0.1);
    opacity: 0;
    z-index: 100;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Keyframe Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------------------------------------------------
   The Racquet Avengers split | Multi-Session & Tab Swapping Additions
   ---------------------------------------------------- */

/* Tabs Swapping Header Controls */
.tabs-container {
    display: flex;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 4px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    font-family: var(--font-header);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(0, 245, 160, 0.1), rgba(0, 217, 245, 0.1));
    color: hsl(var(--accent-emerald));
    border: 1px solid hsla(var(--accent-emerald), 0.15);
    box-shadow: var(--shadow-sm);
}

/* Multi-Session Layout Split (Desktop vs Mobile) */
.app-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
}

@media (min-width: 992px) {
    .app-layout {
        grid-template-columns: 280px 1fr;
    }
}

/* Sidebar Container */
.sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: calc(100vh - 120px);
    position: sticky;
    top: 90px;
    box-shadow: var(--shadow-lg);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.sidebar-header h3 {
    font-family: var(--font-header);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

/* Scrollable Session List */
.sessions-list {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 4px;
}

/* Custom Scrollbar for Sidebar */
.sessions-list::-webkit-scrollbar {
    width: 4px;
}
.sessions-list::-webkit-scrollbar-track {
    background: transparent;
}
.sessions-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

/* Session List Items */
.session-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.session-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(2px);
}

.session-item.active {
    background: rgba(0, 245, 160, 0.04);
    border-color: hsla(var(--accent-emerald), 0.3);
    box-shadow: 0 0 10px hsla(var(--accent-emerald), 0.05);
}

.session-item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.session-item-date {
    font-family: var(--font-header);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.session-item.active .session-item-date {
    color: hsl(var(--accent-emerald));
}

.session-item-meta {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    gap: 8px;
}

.session-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Status dots */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.status-dot.settled { background-color: hsl(var(--accent-emerald)); box-shadow: 0 0 6px hsl(var(--accent-emerald)); }
.status-dot.pending { background-color: hsl(var(--accent-orange)); box-shadow: 0 0 6px hsl(var(--accent-orange)); }

/* Delete session button inside item card */
.btn-delete-session {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    opacity: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.session-item:hover .btn-delete-session {
    opacity: 1;
}

.btn-delete-session:hover {
    color: hsl(var(--accent-red));
    background: rgba(244, 63, 94, 0.1);
}

.btn-delete-session svg {
    width: 14px;
    height: 14px;
}

/* Main Working Area Panel Transitions */
.main-content {
    min-width: 0; /* Prevents flex items from breaking layouts */
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.tab-panel.active {
    display: block;
}

/* ----------------------------------------------------
   The Racquet Avengers split | Authentication & Access
   ---------------------------------------------------- */

.pointer {
    cursor: pointer !important;
}

/* Authentication Status Badge Colors */
#auth-status-badge.viewer-badge {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #f59e0b !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

#auth-status-badge.admin-badge {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

/* Disabled Form and Button Overrides */
input:disabled, 
select:disabled, 
button:disabled,
.btn:disabled,
.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none;
    box-shadow: none !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

/* Specific styling to ensure disabled table inputs look clean */
.table-input:disabled {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--text-secondary) !important;
    box-shadow: none !important;
}

/* Disable action buttons visual hide or lock */
button.btn-icon-only:disabled {
    opacity: 0.25;
    cursor: not-allowed !important;
}

/* Session list item delete button lock in viewer mode */
.session-item.read-only-item .btn-delete-session {
    display: none !important;
}

/* Authentication Dialog Backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease-out;
}

/* Authentication Card Styling */
.modal-card {
    background: #111827;
    background-image: radial-gradient(at top left, rgba(16, 185, 129, 0.05), transparent 40%),
                      radial-gradient(at bottom right, rgba(0, 217, 245, 0.05), transparent 40%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 
                inset 0 1px 0 rgba(255, 255, 255, 0.05),
                0 0 40px rgba(16, 185, 129, 0.05);
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    padding: 28px;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 12px;
}

.modal-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}

.btn-close:hover {
    color: hsl(var(--accent-red));
}

.modal-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* ----------------------------------------------------
   The Racquet Avengers split | Cloud Sync Additions
   ---------------------------------------------------- */

.header-badges {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sync-badge {
    transition: all 0.3s ease;
}

.sync-badge.offline {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

.sync-badge.online {
    background: rgba(0, 217, 245, 0.15) !important;
    color: #00d9f5 !important;
    border: 1px solid rgba(0, 217, 245, 0.3) !important;
    box-shadow: 0 0 10px rgba(0, 217, 245, 0.1);
}
