@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');
@import url('https://cdn.jsdelivr.net/npm/remixicon@3.5.0/fonts/remixicon.css');

:root {
    --bg-main: #020617;
    --bg-card: #0f172a;
    --bg-input: #1e293b;
    --primary: #f59e0b; /* Oltin */
    --primary-hover: #d97706;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --border: 1px solid rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; outline: none; }

body { background-color: var(--bg-main); color: var(--text-light); min-height: 100vh; overflow-x: hidden; }

/* 3D Logo */
.spin-3d {
    animation: float-spin 6s infinite ease-in-out;
    transform-style: preserve-3d;
    filter: drop-shadow(0 0 15px var(--primary));
    font-size: 50px; color: var(--primary);
    display: inline-block; margin-bottom: 10px;
}
@keyframes float-spin {
    0% { transform: translateY(0) rotateY(0deg); }
    50% { transform: translateY(-10px) rotateY(180deg); }
    100% { transform: translateY(0) rotateY(360deg); }
}

.gold-text {
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Layout */
.wrapper { display: flex; height: 100vh; }
.sidebar { width: 280px; background: var(--bg-card); border-right: var(--border); padding: 25px; display: flex; flex-direction: column; position: fixed; height: 100%; z-index: 50; }
.main-content { margin-left: 280px; width: calc(100% - 280px); padding: 30px; overflow-y: auto; height: 100vh; background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.05), transparent 40%); }

/* Cards */
.card { background: var(--bg-card); border: var(--border); border-radius: 20px; padding: 25px; margin-bottom: 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); position: relative; }

/* Elements */
input, select, textarea { width: 100%; background: var(--bg-input); border: 1px solid #334155; padding: 12px; border-radius: 10px; color: white; transition: 0.3s; margin-bottom: 10px; }
input:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 10px rgba(245, 158, 11, 0.3); }

/* Buttons */
.btn { padding: 12px 24px; border-radius: 10px; font-weight: 600; cursor: pointer; border: none; transition: 0.3s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-size: 15px; color: black; }
.btn-primary { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3); }
.btn-primary:hover { transform: scale(1.05); }
.btn-danger { background: #ef4444; color: white; }
.btn-outline { background: transparent; border: 1px solid #334155; color: var(--text-muted); }
.btn-outline:hover { color: var(--primary); border-color: var(--primary); }

/* Menu */
.menu-link { padding: 14px; border-radius: 12px; color: var(--text-muted); text-decoration: none; display: flex; gap: 12px; transition: 0.3s; align-items: center; margin-bottom: 5px; }
.menu-link:hover, .menu-link.active { background: rgba(245, 158, 11, 0.1); color: var(--primary); }

/* Chat Box */
.chat-container { display: flex; flex-direction: column; gap: 15px; max-height: 400px; overflow-y: auto; padding: 10px; background: rgba(0,0,0,0.2); border-radius: 10px; }
.msg-bubble { padding: 15px; border-radius: 15px; max-width: 80%; position: relative; }
.msg-admin { background: var(--bg-input); border: 1px solid var(--primary); align-self: flex-start; color: white; }
.msg-me { background: var(--primary); color: black; align-self: flex-end; }
.msg-time { font-size: 11px; opacity: 0.7; display: block; margin-top: 5px; text-align: right; }

/* Admin Table */
table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th { text-align: left; padding: 15px; color: var(--text-muted); border-bottom: var(--border); }
table.admin-table td { padding: 15px; border-bottom: var(--border); }

/* Report Styles (Blue Theme) */
.blue-report body { background: white !important; color: black !important; }
.blue-report table { width: 100%; border-collapse: collapse; margin-top: 20px; color: black; font-family: sans-serif; }
.blue-report th, .blue-report td { border: 1px solid #000; padding: 10px; text-align: center; }
.blue-report th { background: #1e3a8a; color: white; }
.blue-report .row-pass { background-color: #eff6ff; } /* Juda och ko'k */
.blue-report .row-mid { background-color: #bfdbfe; } /* O'rta ko'k */
.blue-report .row-fail { background-color: #60a5fa; color: white; } /* To'q ko'k (F) */

@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; width: 100%; }
}
@media print {
    .no-print { display: none !important; }
}