/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    --primary: #DC143C; /* Vermelho carmim */
    --black: #111111;
    --dark-gray: #333333; /* Cinza chumbo */
    --light: #f4f4f4;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light);
    color: var(--dark-gray);
    display: flex;
    min-height: 100vh;
}

/* Layout */
.app-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Vertical Menu */
.sidebar {
    width: 250px;
    background-color: var(--black);
    color: var(--white);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    position: fixed;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a {
    display: block;
    color: #999;
    text-decoration: none;
    padding: 1rem 0;
    font-size: 1.1rem;
    transition: 0.3s;
    border-bottom: 1px solid #222;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--white);
    padding-left: 10px;
    border-left: 3px solid var(--primary);
}

.logout-btn {
    margin-top: auto;
    color: var(--primary);
    font-weight: 600;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    margin-left: 250px; /* Width of sidebar */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Login Page overrides */
body.login-page {
    background-color: var(--black);
    align-items: center;
    justify-content: center;
}

.login-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: center;
}

.login-card h2 { color: var(--black); margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--dark-gray); font-weight: 600;}
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: 'Inter';
}

.btn {
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: background 0.3s;
}

.btn:hover { background: #b01030; }

/* Roulette Game */
.game-area {
    text-align: center;
    position: relative;
    max-width: 500px;
    width: 100%;
}

.wheel-container {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto 2rem auto;
    border-radius: 50%;
    border: 10px solid var(--black);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    overflow: hidden;
}

.wheel {
    width: 100%;
    height: 100%;
    transition: transform 4s cubic-bezier(0.2, 0.8, 0.3, 1);
    position: relative;
}

.wheel-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: 100% 100%;
    left: 0;
    top: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding-bottom: 10px;
    /* Clipped via JS/Canvas or conic-gradient, simplified here via JS Canvas usually, but using CSS conic gradient approach in script */
}

.pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; 
    height: 0; 
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid var(--primary);
    z-index: 10;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.3));
}

#result {
    margin-top: 20px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--black);
    min-height: 50px;
}

canvas#wheelCanvas { width: 100%; height: 100%; }

/* Mobile */
@media (max-width: 768px) {
    .sidebar { width: 60px; padding: 1rem 0.5rem; }
    .logo { font-size: 0.8rem; text-align: center; }
    .nav-links span { display: none; }
    .main-content { margin-left: 60px; padding: 1rem; }
    .wheel-container { width: 300px; height: 300px; }
}