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

:root {
    --primary: hsl(230, 60%, 50%);
    --primary-hover: hsl(230, 60%, 45%);
    --accent: hsl(180, 100%, 45%);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --bg-dark: #0a0b1e;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --glass: rgba(16, 18, 27, 0.4);
    --radius-lg: 1.5rem;
    --radius-md: 1rem;
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('assets/bg.png');
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 100%);
    z-index: -1;
}

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

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
}

header {
    margin-bottom: 2rem; /* Reduced from 3rem */
    text-align: center;
    animation: fadeInDown 0.8s ease-out;
}

header h1 {
    display: inline-block;
    font-size: 2.2rem;
    font-weight: 700;
    padding: 0.8rem 2.5rem;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 100px;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.4rem;
        padding: 0.6rem 1.5rem;
    }
}

header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.action-bar {
    width: 100% !important;
    display: flex !important;
    justify-content: flex-end !important;
    margin: 0 0 1rem 0 !important;
    padding-right: 0 !important;
    animation: fadeIn 0.8s ease-out;
}

@media (max-width: 768px) {
    .action-bar {
        justify-content: center !important;
        margin-bottom: 2rem !important;
    }
}

.btn-minimal {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(8px);
    border: 1px solid var(--card-border) !important;
    color: var(--text-secondary) !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-minimal:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: var(--accent) !important;
    border-color: var(--accent) !important;
    transform: translateY(-1px);
}

.btn-minimal i {
    width: 14px;
    height: 14px;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 968px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .glass-card {
        padding: 1.5rem;
    }
}

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

.form-time-grid {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 1rem;
}

@media (max-width: 480px) {
    .form-time-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group label i {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(0, 255, 255, 0.1);
}

.btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(0);
}

.booking-list {
    display: flex;
    flex-direction: column;
    gap: 0; /* Gaps removed */
}

.booking-list .booking-item {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--card-border) !important;
    border-radius: 0 !important;
    padding: 1.25rem 1.5rem !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 !important;
    box-shadow: none !important; /* Remove individual card shadows */
}

/* Rounded corners for the container look */
.booking-list .booking-item:first-child {
    border-top-left-radius: var(--radius-md) !important;
    border-top-right-radius: var(--radius-md) !important;
}

.booking-list .booking-item:last-child {
    border-bottom-left-radius: var(--radius-md) !important;
    border-bottom-right-radius: var(--radius-md) !important;
}

/* Remove double borders */
.booking-list .booking-item + .booking-item {
    border-top: none;
}

.booking-list .booking-item:hover {
    background: rgba(255, 255, 255, 0.07);
}

.booking-item h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* h3 text-align: center removed for left alignment */

.booking-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.detail-node {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

/* detail-node justify-content: center removed for left alignment */

.detail-node i {
    color: var(--accent);
    width: 16px;
}

.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

#otherPurposeGroup {
    animation: fadeIn 0.3s ease-out;
}

/* Filter Bar Styling */
.filter-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.85rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.filter-group select, 
.filter-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.filter-group select:focus, 
.filter-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.filter-group select option {
    background: #1a1a2e;
    color: white;
}

@media (max-width: 768px) {
    .filter-bar {
        grid-template-columns: 1fr;
    }
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    max-width: 500px;
    width: 90%;
    text-align: center;
    padding: 3rem;
    animation: zoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 768px) {
    .modal-content {
        padding: 2rem 1.5rem;
    }
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.modal-body {
    margin: 2rem 0;
    text-align: left;
}

.status-list {
    list-style: none;
    margin-top: 1rem;
}

.status-item {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-item.success {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-item.fail {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    background: #1a1b2e;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1.25rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 320px;
    animation: slideInRight 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition: all 0.4s ease;
    pointer-events: auto;
}

.toast.success { border-left: 4px solid #4ade80; }
.toast.error { border-left: 4px solid #f87171; }
.toast.info { border-left: 4px solid var(--accent); }

.toast i { width: 20px; height: 20px; }
.toast.success i { color: #4ade80; }
.toast.error i { color: #f87171; }
.toast.info i { color: var(--accent); }

.toast.fade-out {
    opacity: 0;
    transform: translateX(20px);
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}
