/* The Fallen Collective DJ Booking System - Main Stylesheet */
/* Designed By: DJCANDYJO & GUNNERYSARGE FOR THE FALLEN COLLECTIVE */

/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #6a0dad;
    --secondary-color: #00b4d8;
    --accent-color: #ff6b6b;
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --light-text: #f8f9fa;
    --gray-text: #adb5bd;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --glow-effect: 0 0 10px rgba(106, 13, 173, 0.7);
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(106, 13, 173, 0.1) 0%, rgba(0, 0, 0, 0) 20%),
        radial-gradient(circle at 90% 60%, rgba(0, 180, 216, 0.1) 0%, rgba(0, 0, 0, 0) 25%);
    background-attachment: fixed;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 1rem;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

a:hover {
    color: var(--accent-color);
    text-shadow: var(--glow-effect);
}

/* ===== HEADER STYLES ===== */
header {
    margin-bottom: 2rem;
    text-align: center;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), transparent);
    animation: rainbow-border 3s linear infinite;
}

@keyframes rainbow-border {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.logo h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(106, 13, 173, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        text-shadow: 0 0 5px rgba(106, 13, 173, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(106, 13, 173, 0.7);
    }
    100% {
        text-shadow: 0 0 5px rgba(106, 13, 173, 0.3);
    }
}

.logo h2 {
    font-size: 1.5rem;
    color: var(--gray-text);
    font-weight: 400;
}

/* ===== BUTTON STYLES ===== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background-color: #7b1fa2;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--box-shadow);
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-danger {
    background-color: var(--danger-color);
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.8rem;
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-text);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--light-text);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
}

/* Improve dropdown readability */
select {
    background-color: rgba(30, 30, 30, 0.9);
    color: var(--light-text);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

/* Fix dropdown option colors */
select option {
    background-color: #121212;
    color: var(--light-text);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(106, 13, 173, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
}

.checkbox-group label {
    margin-bottom: 0;
}

/* ===== SECTION STYLES ===== */
section {
    background-color: var(--darker-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-speed) ease;
}

.active-section {
    display: block;
}

.hidden-section {
    display: none;
}

/* ===== LOGIN SECTION ===== */
.login-container {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.login-container h2 {
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.login-container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), transparent);
}

/* ===== ADMIN DASHBOARD ===== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.nav-btn {
    background: none;
    border: none;
    color: var(--gray-text);
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
}

.nav-btn:hover {
    color: var(--light-text);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
    color: var(--light-text);
    background-color: var(--primary-color);
    box-shadow: var(--box-shadow);
}

.panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

.active-panel {
    display: block;
}

/* ===== BOOKING MANAGEMENT ===== */
.venue-selector {
    margin-bottom: 1.5rem;
}

.date-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
}

.schedule-grid {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.schedule-header {
    display: grid;
    grid-template-columns: 100px repeat(7, 1fr);
    background-color: rgba(106, 13, 173, 0.2);
    padding: 10px 0;
}

.time-header, .day-header {
    text-align: center;
    font-weight: 700;
    padding: 10px;
}

.day-header.disabled {
    background-color: rgba(50, 50, 50, 0.2);
    color: rgba(255, 255, 255, 0.5);
}

.schedule-body {
    max-height: 500px;
    overflow-y: auto;
}

.time-slot-row {
    display: grid;
    grid-template-columns: 100px repeat(7, 1fr);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.time-label {
    padding: 15px 10px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.02);
    font-weight: 500;
}

.slot {
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}

.slot.available {
    background-color: rgba(40, 167, 69, 0.2);
    color: var(--success-color);
}

.slot.booked {
    background-color: rgba(220, 53, 69, 0.2);
    color: var(--danger-color);
}

.slot.disabled {
    background-color: rgba(50, 50, 50, 0.2);
    border: 1px solid rgba(50, 50, 50, 0.3);
    cursor: not-allowed;
    color: rgba(255, 255, 255, 0.5);
}

.slot:hover {
    transform: scale(1.02);
    z-index: 1;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.booking-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

/* ===== CLUB SETUP ===== */
.venues-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.venue-list {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: var(--border-radius);
}

.venue-list ul {
    list-style: none;
    margin-bottom: 1rem;
}

.venue-list li {
    padding: 0.5rem;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
}

.venue-list li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.venue-list li.active {
    background-color: var(--primary-color);
}

.form-hint {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Day-specific scheduling */
.days-schedule {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.day-schedule {
    background-color: rgba(40, 40, 40, 0.5);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.day-header {
    padding: 0.75rem 1rem;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-checkbox {
    display: flex;
    align-items: center;
}

.day-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
}

.day-checkbox label {
    margin-bottom: 0;
    font-weight: 500;
    color: var(--light-text);
}

.day-hours {
    padding: 1rem;
    display: block;
}

.day-checkbox input[type="checkbox"]:not(:checked) + label {
    color: var(--gray-text);
}

.hours-config {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    background-color: rgba(40, 40, 40, 0.5);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hours-range {
    flex: 1;
}

.hours-range label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: 500;
}

/* ===== PUBLIC VIEW ===== */
.public-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.public-schedule {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.day-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.day-card h3 {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.day-slots {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.public-slot {
    padding: 0.75rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition-speed) ease;
}

.public-slot.available {
    background-color: rgba(40, 167, 69, 0.2);
    color: var(--success-color);
    cursor: pointer;
}

.public-slot.booked {
    background-color: rgba(220, 53, 69, 0.2);
    color: var(--danger-color);
}

.public-slot.available:hover {
    background-color: rgba(40, 167, 69, 0.3);
    transform: translateY(-2px);
}

.booking-form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--darker-bg);
    margin: 10% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-text);
    transition: all var(--transition-speed) ease;
}

.close-modal:hover {
    color: var(--accent-color);
}

/* ===== FOOTER STYLES ===== */
footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--gray-text);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 2rem;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 2rem;
    }
    
    .logo h2 {
        font-size: 1.2rem;
    }
    
    .schedule-header, .time-slot-row {
        grid-template-columns: 80px repeat(7, 1fr);
    }
    
    .venues-container {
        grid-template-columns: 1fr;
    }
    
    .dashboard-nav {
        flex-wrap: wrap;
    }
    
    .nav-btn {
        flex: 1 1 auto;
        text-align: center;
    }
    
    .modal-content {
        width: 90%;
        margin: 20% auto;
    }
}

@media (max-width: 576px) {
    section {
        padding: 1rem;
    }
    
    .schedule-header, .time-slot-row {
        grid-template-columns: 60px repeat(7, 1fr);
        font-size: 0.8rem;
    }
    
    .time-header, .day-header, .time-label, .slot {
        padding: 5px;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .booking-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* ===== ANIMATIONS ===== */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(106, 13, 173, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(106, 13, 173, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(106, 13, 173, 0.5);
    }
}

.glow-effect {
    animation: glow 2s infinite;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}