:root {
    --primary: #d4af37; 
    --dark: #161616;
    --dark-gray: #181818;
    --light: #f5f5f5;
    --text-gray: #aaaaaa;
    --danger: #ff4444;
    --success: #00C851;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }

body { 
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

header {
    background-color: var(--dark-gray);
    padding: 0.1rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 60px;
}
.logo { width: 80px; height: auto; }
.logo:hover{cursor: pointer;}
.admin-link {
    font-size: 0.9rem;
    color: var(--text-gray);
    cursor: pointer; 
    transition: 0.3s;
    white-space: nowrap;
}
.admin-link:hover { color: var(--primary); }


.hero {
    min-height: 60vh; 
    background-color: var(--dark);
    background-image: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('hero.png');
    background-size: cover;
    background-position: center 70%;
    
    background-repeat: no-repeat;
    background-attachment: scroll;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    overflow: hidden;
    position: relative;
    

    border-bottom: none; 
    margin-bottom: 0;
}


.hero::after {
    content: "";
    position: absolute;
    bottom: -1px; 
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--dark); 
    z-index: 10; 
    pointer-events: none; 
}

.logo2 { width: 350px; max-width: 80%; height: auto; margin-bottom: -100px; z-index: 1; }
.hero p { 
    font-size: 1.2rem; 
    max-width: 600px; 
    margin-top: 2rem; 
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.btn {
    background-color: var(--primary);
    color: var(--dark);
    padding: 12px 30px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
    display: inline-block;
    border-radius: 4px;
    z-index: 2;
    position: relative;
}
.btn:hover { transform: scale(1.05); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-gray);
    color: var(--light);
    padding: 12px 30px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 4px;
    transition: 0.3s;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.container { 
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 20px;
    width: 100%;
}
.section-title { text-align: center; margin-bottom: 2rem; font-size: 2rem; color: var(--primary); }

.location-selector { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.loc-btn {
    background: var(--dark-gray);
    border: 1px solid var(--text-gray);
    color: var(--light);
    padding: 15px 40px;
    cursor: pointer;
    font-size: 1.1rem;
    border-radius: 5px;
    transition: 0.3s;
}
.loc-btn.active { background: var(--primary); color: var(--dark); border-color: var(--primary); }

.calendar-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); 
    gap: 15px; 
}

.time-slot {
    background: var(--dark-gray);
    padding: 15px;
    text-align: center;
    border: 1px solid #333;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
}
.time-slot:hover { border-color: var(--primary); }
.time-slot.booked { opacity: 0.5; pointer-events: none; text-decoration: line-through; border-color: var(--danger); }
.no-slots-text { text-align:center; color:#666; display:none; margin-top:20px; }

.hidden { display: none !important; }

.form-box {
    background: var(--dark-gray);
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    margin: 4rem auto;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border-top: 3px solid var(--primary);
}
.box-title { color:var(--primary); text-align:center; margin-bottom:10px; }
.booking-subtitle { text-align:center; margin-bottom:20px; color:#ccc; }
.back-link { text-align:center; margin-top:20px; cursor:pointer; color:#666; }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--primary); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    background: #2a2a2a;
    border: 1px solid #444;
    color: white;
    border-radius: 4px;
    font-size: 1rem;
}
.form-group textarea { resize: vertical; min-height: 100px; }

.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid #333; padding-bottom: 10px; flex-wrap: wrap; gap: 10px; }
.admin-tabs { display: flex; gap: 10px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 5px; }
.tab-btn {
    background: transparent; border: none; color: var(--text-gray);
    padding: 10px 20px; cursor: pointer; font-size: 1.1rem;
    border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

.dashboard-box { display:block; border:none; background:#2a2a2a; margin-bottom: 30px; padding: 15px; border-radius: 4px; }
.box-header { color:var(--primary); margin-bottom:15px; }
.add-slot-grid { display:grid; grid-template-columns: 1fr 1fr 1fr auto; gap:10px; }

.dashboard-list { margin-top: 0; padding: 15px 0; }
.dashboard-item {
    background: #252525; padding: 15px; margin-bottom: 10px;
    border-left: 3px solid var(--text-gray);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 10px;
}
.dashboard-item.is-booked { border-left-color: var(--primary); }

.delete-btn { color: var(--danger); cursor: pointer; font-weight: bold; padding: 5px 10px; }
.delete-btn:hover { background: rgba(255,0,0,0.1); border-radius: 4px; }

.modify-btn { color: var(--primary); cursor: pointer; font-weight: bold; padding: 5px 10px; }
.modify-btn:hover { background: rgba(212,175,55,0.1); border-radius: 4px; }

.accordion-btn {
    background-color: var(--dark-gray); color: var(--light);
    cursor: pointer; padding: 18px; width: 100%; text-align: left;
    border: none; border-bottom: 1px solid #333; outline: none;
    font-size: 1.1rem; transition: 0.4s;
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 10px; border-radius: 4px;
}
.accordion-btn:hover, .accordion-btn.active { background-color: #2a2a2a; color: var(--primary); }
.accordion-content {
    padding: 0 18px; background-color: #1a1a1a;
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out;
    border-left: 1px solid #333; border-right: 1px solid #333; margin-bottom: 10px;
}
.count-badge { 
    background: #333; 
    color: white; 
    padding: 2px 8px; 
    border-radius: 12px; 
    font-size: 0.8rem;
    display: inline-block;
}

#toast-container { position: fixed; top: 20px; right: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; }
.toast {
    min-width: 250px; background: var(--dark-gray); color: white;
    padding: 15px 20px; border-radius: 4px;
    border-left: 5px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    animation: slideIn 0.5s ease-out forwards;
}
.toast.error { border-left-color: var(--danger); }
.toast.success { border-left-color: var(--success); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

footer { background-color: var(--dark-gray); border-top: 2px solid var(--primary); padding: 1.5rem 2rem; margin-top: auto; color: var(--text-gray); }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-left { flex: 1; text-align: left; color: var(--text-gray);  }
.footer-center { flex: 1; text-align: center; font-size: 0.9rem; }
.footer-right { flex: 1; display: flex; justify-content: flex-end; }
.footer-logo { font-size: 1.5rem; font-weight: bold; color: var(--primary); letter-spacing: 2px; display: block; margin-bottom: 5px; }
.footer-desc { font-size: 0.9rem; color: var(--text-gray); }
.social-link { color: var(--text-gray); transition: 0.3s; font-weight: 500; }
.social-link:hover { color: var(--primary); text-decoration: underline; }

.calendar-layout {
    display: flex;
    justify-content: center; 
    align-items: flex-start;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.calendar-wrapper {
    flex: 0 0 600px; 
    width: 600px;
    background: #2a2a2a;
    padding: 15px; 
    border-radius: 8px;
}

.details-sidebar {
    flex: 0 0 350px; 
    width: 350px;
    background: #2a2a2a;
    padding: 15px; 
    border-radius: 8px;
    max-height: 525px; 
    overflow-y: auto; 
}

.details-sidebar::-webkit-scrollbar { width: 8px; }
.details-sidebar::-webkit-scrollbar-track { background: #1a1a1a; border-radius: 4px; }
.details-sidebar::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
.details-sidebar::-webkit-scrollbar-thumb:hover { background: #b39025; }

.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-weight: bold; color: var(--text-gray); margin-bottom: 10px; }
.calendar-days-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }

.calendar-day {
    aspect-ratio: 1/1; 
    background: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.2s;
    font-size: 0.9rem;
    position: relative;
}
.calendar-day:hover { background: #444; }
.calendar-day.empty { background: transparent; cursor: default; }
.calendar-day.has-booking { background-color: var(--primary); color: var(--dark); font-weight: bold; }
.calendar-day.selected { border: 3px solid white; }

.split-view-container { display: flex; flex-direction: column; gap: 20px; }
.split-column { background: #252525; padding: 15px; border-radius: 8px; }
.client-note { font-style: italic; color: #888; font-size: 0.85rem; }


@media (max-width: 1024px) { 
    .container { max-width: 90%; }
    
    .calendar-layout { 
        flex-direction: column; 
        align-items: center;
    }
    .calendar-wrapper, .details-sidebar {
        width: 100%;
        flex: auto;
        max-height: none; 
    }

    .location-selector {
        flex-direction: row;  
        flex-wrap: nowrap;    
        gap: 15px;            
    }
    
    .loc-btn {
        width: auto;          
        flex: 1;              
        padding: 15px 10px;   
        min-width: 0;         
    }

    .hero {
        background-position: center bottom;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 10px;
        width: 100%;
    }

    .location-selector {
        flex-direction: row;  
        width: 100%;
        gap: 10px;
    }

    .loc-btn {
        width: auto;          
        flex: 1;              
        margin: 0;
        padding: 12px 5px;    
        font-size: 0.95rem;   
    }

    .calendar-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }
    
    .time-slot {
        width: 100%;
        padding: 10px;
        font-size: 0.9rem;
    }

    .hero {
        min-height: 50vh;
        padding: 40px 15px;
        background-position: center bottom;
    }
    
    .logo2 { width: 250px; max-width: 80%; margin-bottom: -50px; }
    
    .add-slot-grid { grid-template-columns: 1fr; }

    .footer-content {
        flex-direction: column;
        text-align: center;
        padding: 0 10px;
    }
    .footer-left, .footer-center, .footer-right {
        flex: auto;
        text-align: center;
        justify-content: center;
        width: 100%;
    }
    .footer-right { margin-top: 15px; }
}

@media (min-width: 2500px) {
    html  { font-size: 20px; }

    .container {
        max-width: 2400px; 
        padding: 0 40px;
    }

    .hero {
        background-position: center 60%; 
    }

    .hero p {
        max-width: 1000px;
    }

    .footer-content {
        max-width: 3000px; 
        padding: 0 60px;
    }

    .form-box { max-width: 30%; }
    
    .calendar-layout {
        max-width: 2400px;
        gap: 40px;
    }
    
    .calendar-wrapper {
        flex: 0 0 70%; 
        width: auto;
    }
    
    .details-sidebar {
        flex: 1;
        width: auto;
        height: 100%;
    }
}