/* ==========================================================================
   LIFETIME FITNESS CENTER FOR WOMEN - PREMIUM CSS OVERRIDES
   ========================================================================== */

:root {
    --primary-pink: #ff4081;
    --primary-purple: #7b1fa2;
    --gradient-pink-purple: linear-gradient(135deg, #ff4081 0%, #7b1fa2 100%);
    --gradient-card-pink: linear-gradient(135deg, rgba(255, 64, 129, 0.15) 0%, rgba(123, 31, 162, 0.05) 100%);
    
    --bg-dark: #090a0f;
    --bg-panel: rgba(22, 24, 33, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --text-white: #f5f6f8;
    --text-muted: #9ba4b4;
    --text-dark: #12141a;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-premium: 0 8px 30px rgba(0, 0, 0, 0.35);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & typography */
body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Color readability overrides on Dark Backgrounds */
.text-muted {
    color: var(--text-muted) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.65) !important;
}

/* Input Placeholder text styling */
::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
    opacity: 1;
}

::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
}

:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
}

/* Terminal logging console overrides */
.terminal-logs-admin {
    color: #cfd2db !important;
}

.terminal-logs-admin .text-muted {
    color: #7e8594 !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Background Ambient Blobs */
.blob-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
    pointer-events: none;
    z-index: -1;
}

.blob-pink {
    background: var(--primary-pink);
    top: -150px;
    right: -150px;
}

.blob-purple {
    background: var(--primary-purple);
    bottom: -150px;
    left: -150px;
}

/* Glassmorphism containers */
.glass-card {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(255, 64, 129, 0.25);
    transform: translateY(-4px);
}

/* Premium gradient headers and texts */
.text-gradient-pink {
    background: var(--gradient-pink-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

/* Layout overrides: Sidebar panel and Navbar */
.sidebar-panel {
    min-height: 100vh;
    background: rgba(15, 16, 22, 0.95);
    border-right: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: var(--transition-smooth);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding: 10px;
}

.sidebar-logo {
    font-size: 1.8rem;
    color: var(--primary-pink);
    text-shadow: 0 0 10px rgba(255, 64, 129, 0.5);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.sidebar-link:hover {
    color: white;
    background: rgba(255, 64, 129, 0.08);
}

.sidebar-link.active {
    color: white;
    background: var(--gradient-pink-purple);
    box-shadow: 0 4px 15px rgba(123, 31, 162, 0.4);
}

button.sidebar-link {
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    text-align: left;
    width: 100%;
    outline: none;
}

/* Top bar details */
.top-navbar {
    background: rgba(15, 16, 22, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 30px;
}

/* Login panel styling */
.login-screen-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 40px;
}

.login-role-tab {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.login-role-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 8px 12px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.login-role-btn.active {
    background: var(--gradient-pink-purple);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 64, 129, 0.3);
}

/* Premium Form inputs */
.form-control,
.form-select {
    background-color: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid var(--border-color) !important;
    color: white !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    outline: none !important;
    transition: var(--transition-smooth) !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-pink) !important;
    box-shadow: 0 0 10px rgba(255, 64, 129, 0.2) !important;
}

.btn-primary {
    background: var(--gradient-pink-purple) !important;
    border: none !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    transition: var(--transition-smooth) !important;
    box-shadow: 0 4px 15px rgba(255, 64, 129, 0.2) !important;
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 64, 129, 0.35) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ff4d4d, #cc0000) !important;
    border: none !important;
    border-radius: 8px !important;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Stat Cards widgets */
.stat-card-premium {
    position: relative;
    overflow: hidden;
}

.stat-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-pink-purple);
}

.stat-num-val {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
}

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

.bg-pink-glow { background: rgba(255, 64, 129, 0.15); color: var(--primary-pink); border: 1px solid rgba(255, 64, 129, 0.25); }
.bg-purple-glow { background: rgba(123, 31, 162, 0.15); color: #c458e7; border: 1px solid rgba(123, 31, 162, 0.25); }
.bg-cyan-glow { background: rgba(0, 210, 255, 0.15); color: #00d2ff; border: 1px solid rgba(0, 210, 255, 0.25); }
.bg-green-glow { background: rgba(0, 255, 136, 0.15); color: #00ff88; border: 1px solid rgba(0, 255, 136, 0.25); }

/* Table responsive configurations */
.table-premium {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-white);
    font-size: 0.88rem;
}

.table-premium th {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 2px solid var(--border-color);
    padding: 14px 16px;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.table-premium td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    background-color: transparent !important;
}

.table-premium tbody tr {
    transition: var(--transition-smooth);
    background-color: transparent !important;
}

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

/* Modals overlays glass styling */
.modal-content-premium {
    background: var(--bg-panel) !important;
    backdrop-filter: blur(14px) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 18px !important;
    color: white !important;
    box-shadow: var(--shadow-premium) !important;
}

.modal-header-premium {
    border-bottom: 1px solid var(--border-color) !important;
}

/* Active Membership Wallet Ticket */
.membership-pass-card {
    background: linear-gradient(135deg, #1b1c24 0%, #0e0f14 100%);
    border: 1px solid rgba(255, 64, 129, 0.15);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    overflow: hidden;
    position: relative;
    max-width: 340px;
    margin: 0 auto;
}

.membership-pass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-pink-purple);
}

.pass-header {
    padding: 16px 20px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pass-body {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pass-qr-wrapper {
    background: white;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.pass-meta-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
}

.pass-meta-col {
    flex: 1;
    text-align: center;
}

.pass-meta-col:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* Door Gate scanner simulation scenery */
.gate-animated-wrap {
    height: 280px;
    background: #06070a;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    padding: 0 40px;
}

.gate-panel-door {
    width: 50%;
    height: 180px;
    background: rgba(255, 64, 129, 0.05);
    border: 2px solid rgba(255, 64, 129, 0.3);
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.gate-left-panel {
    border-right: 1px solid rgba(255, 64, 129, 0.6);
    transform-origin: left;
}

.gate-right-panel {
    border-left: 1px solid rgba(255, 64, 129, 0.6);
    transform-origin: right;
}

/* Unlocked gates open animations */
.gate-left-panel.open { transform: translateX(-90%); }
.gate-right-panel.open { transform: translateX(90%); }

.gate-pillar {
    width: 25px;
    height: 180px;
    background: linear-gradient(to bottom, #252836, #12131a);
    border-radius: 4px;
}

/* Expiry badges */
.badge-custom {
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.badge-active { background: rgba(0, 255, 136, 0.1); color: #00ff88; border: 1px solid rgba(0, 255, 136, 0.3); }
.badge-expired { background: rgba(255, 64, 129, 0.1); color: var(--primary-pink); border: 1px solid rgba(255, 64, 129, 0.3); }
.badge-unpaid { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); border: 1px solid var(--border-color); }

/* responsive layout fixes */
/* responsive layout fixes */
/* responsive layout fixes */
@media (max-width: 991px) {
    
        /* Reset Grid layout on mobile to avoid fixed sidebar reserving empty track heights */
    .admin-grid-layout,
    .student-grid-layout {
        display: block !important;
    }
    /* Apply sliding drawer layout to all sidebar panels globally */
       /* Apply sliding drawer layout to all sidebar panels globally */
    .sidebar-panel {
        position: fixed;
        top: 0;
        left: -280px;
        bottom: 0;
        width: 280px;
        height: 100vh;
        min-height: 100vh;
        background: rgba(15, 16, 22, 0.98);
        border-right: 1px solid var(--border-color);
        border-bottom: none;
        padding: 80px 20px 20px 20px !important; /* Clear sticky top mobile navbar */
        z-index: 1040;
        overflow-y: auto; /* Enable scrollbar if links exceed mobile viewport height */
        -webkit-overflow-scrolling: touch;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .sidebar-panel.show {
        left: 0;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.7);
    }
    
    .sidebar-menu {
        flex-direction: column !important;
        overflow-x: visible !important;
        white-space: normal !important;
        padding-bottom: 0 !important;
        gap: 8px;
    }
    
    .sidebar-link {
        width: 100%;
        flex: 0 0 auto;
    }

    .top-navbar {
        display: none !important;
    }

    /* Polish panel padding and container widths on mobile view */
    .content-panel {
        padding: 16px 12px !important;
    }
    
    .content-panel .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .membership-pass-card {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Table responsive hides on small tablets and mobiles */
    .table-premium th:nth-child(3),
    .table-premium td:nth-child(3),
    .table-premium th:nth-child(4),
    .table-premium td:nth-child(4) {
        display: none;
    }
}

/* Additional global accessibility overrides */
.form-select option {
    background-color: #12141c !important;
    color: #ffffff !important;
}

.dropdown-menu {
    background-color: #12141c !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.dropdown-item {
    color: #cfd2db !important;
}

.dropdown-item:hover {
    background-color: rgba(255, 64, 129, 0.1) !important;
    color: #ffffff !important;
}

/* Ensure headings have solid contrast */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
}

/* Modal text details formatting */
.modal-body {
    color: #e3e5eb !important;
}

/* Panel titles and text wrappers visibility */
.panel-header h3 {
    color: #ffffff !important;
}

/* Label visibility */
label {
    color: #a0a5b5 !important;
}

