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

:root {
    --theme: #3b82f6; /* Modern Blue */
    --theme-hover: #2563eb;
    --theme-light: rgba(59, 130, 246, 0.1);
    --bg-color: #f8fafc; 
    --text-main: #0f172a;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --shadow-soft: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
}

* { margin:0; padding:0; box-sizing:border-box; font-family:'Inter', sans-serif; }
body { background:var(--bg-color); color:var(--text-main); }
h1, h2, h3, h4, h5, h6 { font-family:'Outfit', sans-serif; letter-spacing:-0.02em; }

.header { background:#ffffff; padding:1.25rem 2rem; box-shadow:0 1px 3px rgba(0,0,0,0.05); display:flex; justify-content:space-between; align-items:center; position:sticky; top:0; z-index:40; }
.header h1 { font-size:1.5rem; color:var(--theme); font-weight:800; }
.container { max-width:800px; margin:3rem auto; padding:0 1.5rem; width:100%; }

.card { background:var(--card-bg); border-radius:16px; border:1px solid var(--card-border); box-shadow:var(--shadow-soft); padding:2rem; margin-bottom:2rem; }
.form-control { width:100%; padding:0.875rem 1rem; border:2px solid #e2e8f0; border-radius:10px; margin-bottom:1.25rem; font-size:1rem; outline:none; transition:all 0.2s; color:var(--text-main); }
.form-control:focus { border-color:var(--theme); box-shadow:0 0 0 4px var(--theme-light); }
.btn { background:var(--theme); color:#fff; border:none; padding:0.75rem 1.5rem; border-radius:10px; font-weight:600; cursor:pointer; font-size:1rem; transition:all 0.2s; display:inline-flex; align-items:center; justify-content:center; }
.btn:hover { background:var(--theme-hover); transform:translateY(-1px); box-shadow:0 4px 6px var(--theme-light); }

.ticket-item { padding:1.75rem; border:1px solid #e2e8f0; border-radius:16px; margin-bottom:1.5rem; background:#ffffff; box-shadow:0 4px 6px -1px rgba(0,0,0,0.02), 0 2px 4px -1px rgba(0,0,0,0.02); transition:all 0.3s ease; }
.ticket-item:hover { box-shadow:0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.03); transform:translateY(-2px); border-color:#cbd5e1; }
.ticket-closed { opacity:0.75; background:#f8fafc; }

.badge { padding:0.35rem 0.75rem; border-radius:6px; font-size:0.75rem; font-weight:700; text-transform:uppercase; letter-spacing:0.05em; display:inline-flex; align-items:center; justify-content:center; }
.badge-open { background:#eff6ff; color:#2563eb; border:1px solid #bfdbfe; }
.badge-closed { background:#ecfdf5; color:#059669; border:1px solid #a7f3d0; }

.ticket-header { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:1rem; flex-wrap:wrap; gap:1.5rem; }
.ticket-title-area { display:flex; flex-direction:column; gap:0.4rem; }
.ticket-title { font-size:1.25rem; font-family:'Outfit', sans-serif; font-weight:700; color:#0f172a; margin:0; line-height:1.3; }
.ticket-meta { color:#64748b; font-size:0.85rem; font-weight:500; display:flex; align-items:center; gap:0.75rem; }
.ticket-meta svg { color:#94a3b8; }

.ticket-desc { color:#334155; white-space:pre-wrap; margin:0; font-size:0.95rem; line-height:1.6; padding-top:1.25rem; border-top:1px solid #f1f5f9; }

.btn-sm { padding:0.5rem 1rem; font-size:0.85rem; border-radius:8px; font-weight:600; cursor:pointer; border:none; transition:all 0.2s ease; display:inline-flex; align-items:center; justify-content:center; gap:0.4rem; outline:none; }
.btn-success { background:#ecfdf5; color:#059669; border:1px solid #a7f3d0; }
.btn-success:hover { background:#d1fae5; transform:translateY(-1px); box-shadow:0 4px 6px rgba(16, 185, 129, 0.1); }
.btn-secondary { background:#f8fafc; color:#475569; border:1px solid #e2e8f0; }
.btn-secondary:hover { background:#f1f5f9; color:#0f172a; transform:translateY(-1px); }
.btn-danger { background:#fef2f2; color:#dc2626; border:1px solid #fecaca; }
.btn-danger:hover { background:#fee2e2; transform:translateY(-1px); box-shadow:0 4px 6px rgba(239, 68, 68, 0.1); }

/* Admin UI */
.admin-layout { display:flex; min-height:100vh; }
.admin-sidebar { width:260px; background:#ffffff; border-right:1px solid var(--card-border); padding:1.5rem; display:flex; flex-direction:column; position:sticky; top:0; height:100vh; }
.admin-sidebar .brand { font-family:'Outfit', sans-serif; font-size:1.5rem; font-weight:800; color:var(--text-main); margin-bottom:2rem; display:flex; align-items:center; gap:0.5rem; }
.admin-sidebar a { display:flex; align-items:center; gap:0.75rem; padding:0.875rem 1rem; text-decoration:none; color:var(--text-muted); font-weight:600; border-radius:10px; margin-bottom:0.25rem; transition:all 0.2s; }
.admin-sidebar a:hover { background:#f1f5f9; color:var(--text-main); }
.admin-sidebar a.active { background:#eff6ff; color:var(--theme); }
.admin-content { flex:1; padding:2.5rem 3rem; background:var(--bg-color); min-width:0; }
.admin-header-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:2rem; }
.admin-header-row h2 { margin:0; font-size:1.75rem; font-weight:800; color:var(--text-main); }

/* ========================================= */
/* 📱 Mobile Responsiveness (Auto-Generated) */
/* ========================================= */
@media (max-width: 768px) {
    /* Global Containers */
    .container, .main-container, .board-container, .admin-container, .admin-wrap { padding: 1rem !important; }
    
    /* Hero & Headers */
    .hero { padding: 3rem 1rem !important; margin-bottom: -20px !important; border-radius: 0 0 20px 20px !important; }
    .hero h1, .hero-title, .event-title, .form-card h1, .contact-card h1 { font-size: 2rem !important; }
    
    /* Layouts & Grids */
    .admin-dashboard, .admin-layout, div[style*='grid-template-columns'] { grid-template-columns: 1fr !important; display: flex !important; flex-direction: column !important; gap: 1.5rem !important; }
    .product-grid { grid-template-columns: 1fr !important; }
    
    /* Cards & Boxes */
    .booking-card, .ticket-card, .form-card, .contact-card, .admin-login, .shortener-box, .suggest-box, .req-item, .admin-panel, .card { width: 100% !important; max-width: 100% !important; padding: 1.5rem !important; flex-direction: column !important; align-items: stretch !important; box-sizing: border-box !important; }
    
    /* Sidebar */
    .sidebar { width: 100% !important; height: auto !important; padding: 1.5rem !important; }
    
    /* Tables */
    .data-table, .roster-table, table { display: block !important; width: 100% !important; overflow-x: auto !important; white-space: nowrap !important; -webkit-overflow-scrolling: touch; }
    
    /* Navigations */
    .navbar, .header, .admin-header, .admin-nav { flex-direction: column !important; text-align: center !important; gap: 1rem !important; padding: 1rem !important; }
    
    /* Form Elements & Buttons */
    .btn, button, input, select, textarea { width: 100% !important; font-size: 1rem !important; box-sizing: border-box !important; }
    .input-group, .suggest-box { flex-direction: column !important; gap: 1rem !important; }
    
    /* Specific Fixes */
    .vote-box { width: 100% !important; padding: 0.5rem !important; flex-direction: row !important; justify-content: center !important; gap: 0.5rem !important; }
    .vote-count { margin-top: 0 !important; }
}
