:root {
    --bg-dark: #050505;
    --bg-secondary: #0f0f0f;
    --bg-tertiary: #1a1a1a;
    --gold: #f5c400;
    --gold-hover: #f5d633;
    --text-white: #ffffff;
    --text-gray: #cccccc;
    --text-dark-gray: #888888;
    --border-color: #222222;
    --border-light: #333333;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* LOGIN SCREEN */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 40px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-gray);
    text-transform: uppercase;
}

.form-group input,
.form-group select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: var(--text-dark-gray);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(245, 196, 0, 0.1);
}

.btn-login {
    background: var(--gold);
    color: var(--bg-dark);
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
}

.error-text {
    color: #f44336;
    font-size: 12px;
}

/* ADMIN PANEL */
.admin-panel {
    min-height: 100vh;
    background: var(--bg-dark);
    padding: 20px;
}

.admin-header {
    max-width: 1200px;
    margin: 0 auto 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
}

.admin-header h1 {
    font-size: 24px;
    color: var(--gold);
}

.btn-logout {
    background: #f44336;
    color: white;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: #d32f2f;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 32px;
}

.admin-section h2 {
    font-size: 20px;
    margin-bottom: 24px;
    color: var(--gold);
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.btn-primary {
    background: var(--gold);
    color: var(--bg-dark);
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary:hover {
    background: var(--gold-hover);
}

/* PLAYERS LIST */
.players-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.player-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 16px;
    transition: all 0.3s ease;
}

.player-item:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 12px rgba(245, 196, 0, 0.1);
}

.player-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--gold);
}

.player-stat {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
}

.player-stat:last-child {
    border-bottom: none;
}

.player-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.btn-small {
    flex: 1;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit {
    background: var(--gold);
    color: var(--bg-dark);
}

.btn-edit:hover {
    background: var(--gold-hover);
}

.btn-delete {
    background: #f44336;
    color: white;
}

.btn-delete:hover {
    background: #d32f2f;
}

@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .players-list {
        grid-template-columns: 1fr;
    }
}
