@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-color: #0b0f19;
    --surface-color: rgba(255, 255, 255, 0.05);
    --surface-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-muted: #a0aec0;
    --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --accent-gradient-hover: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --danger-color: #f56565;
    --success-color: #48bb78;
    --glass-blur: blur(10px);
    --bg-overlay: rgba(11, 15, 25, 0.88);
    --accent-color: #00f2fe;
    --panel-border: rgba(0, 242, 254, 0.2);
}

[data-theme="light"] {
    --bg-color: #f7fafc;
    --surface-color: rgba(255, 255, 255, 0.9);
    --surface-border: rgba(0, 0, 0, 0.1);
    --text-primary: #1a202c;
    --text-muted: #4a5568;
    --accent-gradient: linear-gradient(135deg, #0072ff 0%, #00c6ff 100%);
    --accent-gradient-hover: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    --danger-color: #e53e3e;
    --success-color: #38a169;
    --bg-overlay: rgba(255, 255, 255, 0.92);
    --accent-color: #0056b3;
    --panel-border: rgba(0, 86, 179, 0.2);
}



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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(var(--bg-overlay), var(--bg-overlay)),
        url('../assets/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Header */
header {
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(0, 242, 254, 0.3);
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.05) 0%, var(--surface-color) 40%, rgba(79, 172, 254, 0.08) 100%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: var(--glass-blur);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.logo-icon {
    height: 40px;
    width: auto;
    margin-right: 12px;
}

.logo-dark {
    mix-blend-mode: screen;
}

.logo-light {
    display: none;
    mix-blend-mode: multiply;
}

[data-theme="light"] .logo-dark {
    display: none;
}

[data-theme="light"] .logo-light {
    display: block;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    font-style: italic;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
    display: inline-block;
    padding-right: 0.5rem;
}

/* Shared UI Components */
.glass-panel {
    background: var(--surface-color);
    border: 1px solid var(--panel-border);
    backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(0, 242, 254, 0.1);
}

.btn {
    background: var(--accent-gradient);
    color: #0b0f19;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
    transform: scale(1.02);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-primary);
}
.btn-secondary:hover {
    background: var(--surface-color);
    box-shadow: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--surface-color);
}

select.form-control {
    background-color: #181c26; /* Solid hex explicitly mimicking var(--surface-color) */
    color: #ffffff;
}
select.form-control option,
option {
    background-color: #181c26;
    color: #ffffff;
}

[data-theme="light"] select.form-control {
    background-color: #ffffff;
    color: #1a202c;
}
[data-theme="light"] select.form-control option,
[data-theme="light"] option {
    background-color: #ffffff;
    color: #1a202c;
}


/* Hide number input spinners */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}

input[type=number].form-control {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Application Container */
main {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.view {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.view.active {
    display: block;
}

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

/* Specific Views */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.auth-container {
    max-width: 400px;
    margin: 4rem auto;
}

.auth-container h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.toggle-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.toggle-link:hover {
    color: #4facfe;
}

/* Utility classes */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-1 { margin-top: 1rem; }

/* Group Item */
.group-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--surface-border);
    margin-bottom: 1rem;
    transition: background 0.2s ease;
}
.group-card:hover {
    background: rgba(255,255,255,0.05);
}
.group-info h4 {
    margin-bottom: 0.25rem;
}
.group-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .header-ads {
        display: none !important;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-radius: 12px;
}

/* Premium Modern Input Fields */
.input-modern {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 1.15rem;
    font-family: inherit;
    transition: all 0.3s ease;
}
.input-modern:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
}
[data-theme="light"] .input-modern {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}
[data-theme="light"] .input-modern:focus {
    background: rgba(0, 0, 0, 0.04);
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 86, 179, 0.15);
}
select.input-modern {
    background-color: #181c26;
    color: #ffffff;
}
select.input-modern option {
    background-color: #181c26;
    color: #ffffff;
}
[data-theme="light"] select.input-modern {
    background-color: #ffffff;
    color: #1a202c;
}
[data-theme="light"] select.input-modern option {
    background-color: #ffffff;
    color: #1a202c;
}

/* Enhanced Commissioner Settings Inputs */
#organizer-settings-wrapper .input-modern {
    font-size: 1.3rem;
    padding: 1.1rem 1.4rem;
}
#inp-invite-username {
    font-size: 1.8rem !important;
    padding: 1.5rem 2rem !important;
}
