:root {
    --accent: #ffffff;
    --accent-hover: #cccccc;
    --bg-dark: #000000;
    --sidebar-bg: #050505;
    --card-bg: #0a0a0a;
    --card-border: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: #ffffff;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'><line x1='10' y1='0' x2='10' y2='20' stroke='white' stroke-width='2'/><line x1='0' y1='10' x2='20' y2='10' stroke='white' stroke-width='2'/></svg>") 10 10, crosshair;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    z-index: -1;
}

a, button, input[type="button"], input[type="submit"], [onclick] {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'><line x1='10' y1='0' x2='10' y2='20' stroke='white' stroke-width='2'/><line x1='0' y1='10' x2='20' y2='10' stroke='white' stroke-width='2'/></svg>") 10 10, crosshair;
    text-decoration: none;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.text-accent { color: var(--accent); }
.bg-accent { background-color: var(--accent); color: #000000; border: none; padding: 0.75rem 1.5rem; border-radius: 0.75rem; font-weight: bold; transition: all 0.3s; }
.bg-accent:hover { background-color: var(--accent-hover); }
.border-accent { border-color: var(--accent); }

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 2rem;
    margin-bottom: 2rem;
}

.dashboard-input {
    background: #111111;
    border: 1px solid #333333;
    color: white;
    transition: all 0.3s ease;
    border-radius: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}
.dashboard-input:focus {
    outline: none;
    background: #1a1a1a;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 0.5rem;
    margin-left: 0.25rem;
}

.dashboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.dashboard-table th {
    background: #111111;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--accent);
    padding: 1rem;
    border-bottom: 1px solid var(--card-border);
    text-align: left;
}
.dashboard-table th:first-child { border-top-left-radius: 1rem; }
.dashboard-table th:last-child { border-top-right-radius: 1rem; }
.dashboard-table td {
    padding: 1rem;
    border-bottom: 1px solid #222222;
}
.dashboard-table tr:last-child td { border-bottom: none; }
.dashboard-table tr:hover td { background: #111111; }

.badge {
    background: #222222;
    color: var(--accent);
    border: 1px solid #444444;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    color: #aaaaaa;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 0.25rem;
}
.menu-item:hover {
    background: #222222;
    color: white;
}
.menu-item.active {
    background: var(--accent);
    color: #000000;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.sidebar {
    width: 280px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--card-border);
    z-index: 40;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-content {
    padding: 2rem 1rem;
    flex: 1;
}

.logo-wrap {
    text-align: center;
    margin-bottom: 2rem;
}

.user-profile {
    padding: 1.5rem 1rem;
    border-top: 1px solid var(--card-border);
    text-align: center;
}
.user-profile img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    margin-bottom: 1rem;
    filter: grayscale(100%);
}

.main-content {
    margin-left: 280px;
    min-height: 100vh;
    padding: 3rem;
}

@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; padding: 1rem; }
}

@layer base {
  input[type="number"]::-webkit-inner-spin-button,
  input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
}

.wheel-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 3rem auto;
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1), inset 0 0 20px rgba(0,0,0,0.8);
    border: 5px solid var(--accent);
    overflow: hidden;
    transition: transform 5s cubic-bezier(0.2, 0.8, 0.1, 1);
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; 
    height: 0; 
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid white;
    z-index: 50;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

.canvas-wheel {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); 
}

.mystic-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
}

.winner-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 100;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.winner-content {
    background: var(--card-bg);
    border: 2px solid var(--accent);
    padding: 3rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 0 50px rgba(255,255,255,0.1);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.alert {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
    border: 1px solid;
}
.alert-success { background: #111111; color: #ffffff; border-color: #555555; }
.alert-error { background: #0a0a0a; color: #aaaaaa; border-color: #333333; }

.dynamic-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.remove-btn {
    background: #222222;
    color: #ffffff;
    border: 1px solid #444444;
    padding: 0.75rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    font-weight: bold;
    cursor: pointer;
}
.remove-btn:hover {
    background: #333333;
}