@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&display=swap');

:root {
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.5);
    --accent: #8b5cf6;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --border: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0, transparent 50%), 
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.15) 0, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
}

a { text-decoration: none; transition: 0.3s; }
h1, h2, h3, h4, h5 { color: #fff; font-weight: 700; }

.navbar {
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nav-link { color: var(--text-muted) !important; font-weight: 500; margin: 0 8px; }
.nav-link:hover, .nav-link.active { color: #fff !important; text-shadow: 0 0 10px rgba(255,255,255,0.3); }
.navbar-toggler { border: 1px solid var(--border); background: rgba(255,255,255,0.05); }
.navbar-toggler-icon { filter: invert(1); }

.card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    color: #fff;
    overflow: hidden;
}
.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    font-weight: 600;
    text-align: center;
    color: #fff;
}
.card-body { padding: 2rem; }

.form-control, .form-select {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid var(--border) !important;
    color: #fff !important;
    border-radius: 10px;
    padding: 12px 16px;
}
.form-control:focus, .form-select:focus {
    background: rgba(15, 23, 42, 0.8) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
    color: #fff !important;
}
.form-label { color: var(--text-muted); font-size: 0.9rem; }
.input-group-text {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border);
    color: var(--text-muted);
}
.form-control::placeholder { color: #cbd5e1 !important; opacity: 0.6; }

.btn { border-radius: 50px; padding: 10px 24px; font-weight: 600; transition: 0.3s; }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    color: #fff;
    box-shadow: 0 10px 20px -5px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px var(--primary-glow);
}
.btn-outline-light {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-color: #fff;
}

.modal-content { background: #1e293b; border: 1px solid var(--border); color: #fff; }
.modal-header { border-bottom: 1px solid var(--border); }
.btn-close { filter: invert(1); }


.facility-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.facility-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.facility-img-placeholder {
    height: 180px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--primary);
    position: relative;
    border-bottom: 1px solid var(--border);
}
.facility-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(99, 102, 241, 0.2);
    color: #fff;
    border: 1px solid rgba(99, 102, 241, 0.4);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.facility-title { font-size: 1.25rem; margin-bottom: 0.5rem; color: #fff; }
.facility-address { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.facility-price { font-size: 1.25rem; color: #10b981; font-weight: 700; }

#toastContainer {
    position: fixed; top: 90px; right: 20px; z-index: 9999;
    display: flex; flex-direction: column; gap: 10px;
}
.custom-toast {
    background: #1e293b; color: white; padding: 12px 20px;
    border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border-left: 4px solid #3b82f6; min-width: 300px;
    font-size: 0.95rem; display: flex; align-items: center; justify-content: space-between;
    animation: slideIn 0.3s ease-out forwards;
    opacity: 0; transform: translateX(100%);
}
.custom-toast.success { border-left-color: #10b981; }
.custom-toast.success i { color: #10b981; }
.custom-toast.error { border-left-color: #ef4444; }
.custom-toast.error i { color: #ef4444; }

@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

.dropdown-menu {
    background-color: #1e293b !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 15px 40px -5px rgba(0,0,0,0.5);
    padding: 0.5rem 0; margin-top: 10px !important;
}
.dropdown-item {
    color: #cbd5e1 !important; padding: 10px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05); white-space: normal;
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background-color: rgba(255,255,255,0.05) !important; color: #fff !important; }
.dropdown-header {
    color: #94a3b8 !important; font-weight: 700; text-transform: uppercase;
    font-size: 0.75rem; letter-spacing: 1px; padding: 8px 20px;
}
.dropdown-item.unread {
    background: rgba(99, 102, 241, 0.1); border-left: 3px solid var(--primary);
}
.btn-read {
    font-size: 0.7rem; padding: 2px 8px; margin-top: 5px;
    background: rgba(255,255,255,0.1); border: none; color: #fff;
    border-radius: 4px; transition: 0.2s;
}
.btn-read:hover { background: var(--primary); }

.reservation-panel {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem; height: 100%;
}
.slot-btn {
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0; border-radius: 4px; font-size: 0.85rem; transition: all 0.2s;
}
.slot-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.5);
}
.slot-btn:disabled {
    border-color: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.2); cursor: not-allowed;
}
.slot-btn.selected { background-color: #0d6efd; border-color: #0d6efd; color: white; }
.slot-btn.selected-end { background-color: #198754; border-color: #198754; color: white; }
input[type="date"].custom-date-input {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15); color: white;
}
input[type="date"].custom-date-input:focus {
    background-color: rgba(0, 0, 0, 0.4); border-color: #0d6efd; box-shadow: none;
}
.summary-box {
    background: rgba(25, 135, 84, 0.1);
    border: 1px solid rgba(25, 135, 84, 0.3); border-radius: 4px;
}
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
    background: #1e293b !important; color: #fff !important;
    border: 1px solid #6366f1; box-shadow: 0 10px 25px rgba(0,0,0,0.5); border-radius: 12px;
}
.leaflet-popup-close-button { color: #94a3b8 !important; }
.leaflet-popup-close-button:hover { color: #ef4444 !important; }
.leaflet-popup-content { margin: 15px !important; line-height: 1.5; }

.text-white { color: #fff !important; }
.text-muted { color: #94a3b8 !important; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(15, 23, 42, 0.6); }
::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.5); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99, 102, 241, 0.8); }

