/* assets/css/main.css */
:root {
    --primary: #e7c27d;
    --primary-hover: #c49d5a;
    --bg: #1b0f0c;
    --card-bg: rgba(43, 7, 0, 0.9);
    --text: #f5e6c8;
    --text-muted: #c4a66a;
    --error: #e07a6a;
    --success: #6ac47e;
    --border: rgba(231, 194, 125, 0.25);
    --shadow: 0 8px 32px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Outfit', 'Inter', sans-serif;
    background: linear-gradient(160deg, #1b0f0c 0%, #2a1410 50%, #470c00 100%);
    color: var(--text);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 { color: var(--primary); letter-spacing: 2px; }

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    margin-bottom: 24px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

input, select, button {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,0.3);
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 12px;
}

input:focus { outline: none; border-color: var(--primary); }

button {
    background: var(--primary);
    color: var(--bg);
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

button:hover { background: var(--primary-hover); transform: translateY(-1px); }
button.secondary { background: transparent; color: var(--primary); border: 1px solid var(--primary); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); }
th { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; }

.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}
.status.waiting { background: #b38b4d22; color: var(--primary); }
.status.ongoing { background: #6ac47e22; color: var(--success); }
.status.finished { background: rgba(255,255,255,0.1); color: var(--text-muted); }

.badge {
    background: var(--primary);
    color: var(--bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 5px;
}

.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden; opacity: 0;
    transition: all 0.3s;
}
.modal.active { visibility: visible; opacity: 1; }
.modal-content {
    background: var(--bg);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--primary);
    max-width: 500px;
    width: 90%;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}
.nav a { color: var(--text-muted); text-decoration: none; font-weight: 600; }
.nav a.active { color: var(--primary); border-bottom: 2px solid var(--primary); }
