* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0f172a;
    color: #f1f5f9;
}

.layout {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 260px;
    background: #0b1220;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 40px;
}

.brand img {
    width: 36px;
    height: 36px;
}

/* NAV */
.nav-link {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: #94a3b8;
    margin-bottom: 8px;
    transition: 0.3s;
}

.nav-link:hover {
    background: #1e293b;
    color: #ffffff;
}

.nav-link.active {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    color: white;
}

/* MAIN */
.main {
    flex: 1;
    padding: 50px;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
}

.page-header p {
    color: #94a3b8;
    margin-top: 6px;
}

/* CARD */
.card {
    background: #1e293b;
    padding: 25px;
    border-radius: 18px;
    margin-bottom: 25px;
}

/* FORM */
.inline-form {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.inline-form input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
}

/* BUTTON */
.btn-primary {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary:hover {
    opacity: 0.85;
}

.btn-primary.large {
    margin-top: 20px;
    padding: 12px 24px;
}

/* HERO */
.hero {
    text-align: center;
}

.wave {
    height: 80px;
    margin-top: 15px;
    border-radius: 12px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    opacity: 0.6;
}

/* STATS */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.stat h4 {
    color: #94a3b8;
    margin-bottom: 10px;
}

.stat p {
    font-size: 24px;
    font-weight: 700;
}

/* TABLE */
.table-card table {
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
}

.table-card th,
.table-card td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #334155;
}

.table-card th {
    color: #94a3b8;
}
/* ========================= */
/* AUTH PAGES */
/* ========================= */

.auth-body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: white;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.auth-card {
    background: #1e293b;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header img {
    width: 60px;
    margin-bottom: 15px;
}

.auth-header h2 {
    margin: 0;
    font-weight: 700;
}

.auth-header p {
    margin-top: 8px;
    color: #94a3b8;
    font-size: 14px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: #0f172a;
    color: white;
    font-size: 14px;
}

.form-group input:focus {
    outline: 2px solid #6366f1;
}

.btn-primary.full {
    width: 100%;
    margin-top: 10px;
}

.auth-links {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.auth-links a {
    color: #8b5cf6;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.home-link {
    color: #94a3b8;
}
/* ========================= */
/* SETTINGS PAGE */
/* ========================= */

.page-title {
    font-size: 28px;
    margin-bottom: 30px;
}

.settings-card h3 {
    margin-bottom: 20px;
}

.form-inline {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.form-inline input {
    flex: 1;
    min-width: 200px;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: #0f172a;
    color: white;
}

.form-inline input:focus {
    outline: 2px solid #6366f1;
}

.logout-section {
    margin-top: 30px;
}

.logout-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    background: #ef4444;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.logout-btn:hover {
    opacity: 0.8;
}

/* Sidebar Nav Fix */
nav {
    display: flex;
    flex-direction: column;
    margin-top: 40px;
}

.nav-link {
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #cbd5e1;
    margin-bottom: 8px;
    transition: 0.3s;
}

.nav-link:hover {
    background: #1e293b;
    color: white;
}

.nav-link.active {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    color: white;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
}

.brand img {
    width: 40px;
}
/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0f172a;
    color: #ffffff;
}

/* LAYOUT */
.layout {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 250px;
    background: #1e293b;
    padding: 30px 20px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 30px;
}

.nav {
    list-style: none;
}

.nav li {
    margin-bottom: 15px;
}

.nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav a:hover {
    color: #8b5cf6;
}

/* MAIN */
.main {
    flex: 1;
    padding: 40px;
}

h2 {
    margin-bottom: 20px;
}

.card {
    background: #1e293b;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
}

/* TABLE */
table {
    width: 100%;
    border-collapse: collapse;
    background: #1e293b;
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 12px 15px;
    text-align: left;
}

th {
    background: #334155;
}

tr:nth-child(even) {
    background: #1e293b;
}
/* LIVE PAGE */
.live-time {
    font-size: 18px;
    font-weight: 600;
    color: #8b5cf6;
}

.live-card h3 {
    margin-bottom: 20px;
}

.live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.live-item {
    background: #0f172a;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.live-item .label {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 6px;
}