/* 
 * StepOne Venue Registration System
 * Glassmorphic Design System
 */

@font-face {
    font-family: 'Groovezilla';
    src: url('../Assets/dks-groovezilla-personal-use.regular.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Sardin';
    src: url('../Assets/sardin-demo/Sardin%20DEMO.otf') format('opentype');
    font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #8a46ff;
    --primary-light: #ab7eff;
    --primary-dark: #5c24b3;
    --gold: #d4af37;
    --gold-light: #f3e5ab;
    --white: #ffffff;
    --text-light: #ecdffc;
    --text-muted: #b0a2c7;

    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.15);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.15);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.15);
    --info: #06b6d4;
    --info-bg: rgba(6, 182, 212, 0.15);

    --bg-dark: #080214;
    --bg-gradient: linear-gradient(135deg, #1a0836 0%, #080214 100%);
    --card-gradient: linear-gradient(
        145deg,
        rgba(255,255,255,0.06) 0%,
        rgba(255,255,255,0.02) 100%
    );
    --card-border: rgba(255, 255, 255, 0.08);
    --accent-gradient: linear-gradient(90deg, #8a46ff, #d4af37);
    --font-heading: 'Groovezilla', 'Montserrat', sans-serif;
    --font-title: 'Sardin', 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-glow: 0 0 25px rgba(138, 70, 255, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-light);
    font-family: var(--font-body);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--white);
}

.brand-font {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.title-font {
    font-family: var(--font-title);
    letter-spacing: 0.5px;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: all 0.2s;
}

a:hover {
    color: var(--gold);
}

/* Layout Header & Navigation */
.app-header {
    background: rgba(13, 4, 30, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 24px;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(138, 70, 255, 0.4));
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.counter-badge {
    background: var(--accent-gradient);
    color: var(--bg-dark);
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-glow);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.volunteer-meta {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.volunteer-meta strong {
    color: var(--white);
    display: block;
    font-size: 0.95rem;
}

/* Main Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

/* Cards & Glassmorphism */
.glass-card {
    background: var(--card-gradient);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 24px;
    transition: transform 0.2s, border-color 0.2s;
}

.glass-card:hover {
    border-color: rgba(138, 70, 255, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #8a46ff 0%, #5c24b3 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(138, 70, 255, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ab7eff 0%, #8a46ff 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(138, 70, 255, 0.6);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    transform: translateY(-1px);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    color: var(--white);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.btn-gold {
    background: linear-gradient(135deg, #d4af37 0%, #997a15 100%);
    color: #080214;
    font-weight: 700;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #f3e5ab 0%, #d4af37 100%);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-light);
}

.btn-outline:hover {
    border-color: var(--primary-light);
    color: var(--white);
    background: rgba(138, 70, 255, 0.1);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.btn-block {
    width: 100%;
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(8, 2, 20, 0.7);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(138, 70, 255, 0.25);
    background: rgba(8, 2, 20, 0.9);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ab7eff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

select.form-control option {
    background: #080214;
    color: #ffffff;
}

/* Search Container */
.search-hero {
    position: relative;
    margin-bottom: 24px;
}

.search-hero-input {
    width: 100%;
    padding: 18px 24px 18px 56px;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    background: rgba(13, 4, 30, 0.85);
    border: 2px solid rgba(138, 70, 255, 0.4);
    box-shadow: 0 0 30px rgba(138, 70, 255, 0.15);
}

.search-hero-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.3);
}

.search-hero-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-light);
    font-size: 1.4rem;
    pointer-events: none;
}

/* Badges & Status Indicators */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-info {
    background: var(--info-bg);
    color: var(--info);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-purple {
    background: rgba(138, 70, 255, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(138, 70, 255, 0.3);
}

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--card-gradient);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
}

.custom-table th {
    background: rgba(8, 2, 20, 0.9);
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 2px solid var(--card-border);
}

.custom-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--card-border);
    color: var(--text-light);
    vertical-align: middle;
}

.custom-table tbody tr {
    transition: background 0.15s;
}

.custom-table tbody tr:hover {
    background: rgba(138, 70, 255, 0.08);
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 1, 10, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-dialog {
    background: linear-gradient(145deg, #15062c 0%, #0a0218 100%);
    border: 1px solid rgba(138, 70, 255, 0.3);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--shadow-glow);
    padding: 28px;
    transform: scale(0.92);
    transition: transform 0.25s ease;
}

.modal-backdrop.active .modal-dialog {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--card-border);
}

.modal-title {
    font-size: 1.25rem;
    color: var(--gold);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--white);
}

/* Alert Banners */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background: var(--danger-bg);
    border: 1px solid var(--danger);
    color: #fca5a5;
}

.alert-success {
    background: var(--success-bg);
    border: 1px solid var(--success);
    color: #6ee7b7;
}

.alert-warning {
    background: var(--warning-bg);
    border: 1px solid var(--warning);
    color: #fcd34d;
}

/* QR Code Display */
.qr-preview {
    text-align: center;
    margin: 16px 0;
}

.qr-preview img {
    max-width: 200px;
    border-radius: 12px;
    border: 2px solid var(--gold);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

/* Tabs */
.nav-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 24px;
    overflow-x: auto;
}

.nav-tab {
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.nav-tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.nav-tab:hover:not(.active) {
    color: var(--white);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .container {
        padding: 12px;
    }
}
