@import url('variables.css');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@300;400;500;600&display=swap');

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .brand {
    font-family: 'Playfair Display', serif;
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    padding: var(--gap);
    border-radius: var(--radius);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: white;
    font-family: inherit;
    transition: var(--transition);
}

.form-control optgroup {
    background-color: #1a1c1e;
    color: var(--primary);
    font-weight: bold;
    font-style: normal;
}

.form-control option {
    background-color: #1a1c1e;
    color: white;
    padding: 10px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

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

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

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

/* Responsive Grid */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--gap);
}

/* Toast Notification Styles */
#toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 9999;
}

.toast {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideInRight 0.3s ease-out;
    background: rgba(20, 20, 20, 0.9);
    border-left: 4px solid var(--primary);
}

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

/* Sliding Panel Styles */
.side-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: linear-gradient(145deg, rgba(10, 10, 10, 0.98), rgba(20, 20, 20, 0.95));
    backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: -15px 0 45px rgba(0,0,0,0.7);
    transition: cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
    padding: 2.5rem;
    border-left: 1px solid rgba(197, 160, 89, 0.15);
    overflow-y: auto;
    color: white;
}

.side-panel h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.side-panel .panel-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.side-panel .panel-close:hover {
    background: rgba(255,50,50,0.1);
    color: var(--error);
    transform: rotate(90deg);
}

.side-panel::-webkit-scrollbar {
    width: 5px;
}

.side-panel::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.side-panel.active {
    right: 0;
}

.panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: none;
}

.panel-overlay.active {
    display: block;
}

/* Desktop & Mobile Tweaks */
@media (max-width: 768px) {
    .side-panel {
        width: 100%;
        right: -100%;
    }
}
