@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&display=swap');

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

body {
    font-family: 'Fira Code', 'Courier New', monospace;
    background: #0c0c0c;
    color: #c0ffc0;
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 0, 0.015) 2px,
        rgba(0, 255, 0, 0.015) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

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

header {
    background: #0a0a0a;
    padding: 15px 0;
    border-bottom: 1px solid #003300;
    margin-bottom: 30px;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ff00, transparent);
    opacity: 0.3;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.1em;
    color: #00ff00;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

header h1::before {
    content: '> ';
    color: #006600;
}

header nav a {
    color: #008800;
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.85em;
    transition: color 0.2s;
    position: relative;
}

header nav a::before {
    content: '[';
    color: #004400;
}

header nav a::after {
    content: ']';
    color: #004400;
}

header nav a:hover {
    color: #00ff00;
}

h2 {
    color: #00ff00;
    margin-bottom: 20px;
    font-size: 1.05em;
    font-weight: 600;
    letter-spacing: 0.5px;
}

h2::before {
    content: '## ';
    color: #006600;
}

h3 {
    font-size: 0.95em;
    font-weight: 600;
}

.card {
    background: #111111;
    border: 1px solid #003300;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: -1px; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, #00ff00, transparent);
    opacity: 0.2;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #002200;
    font-size: 0.85em;
}

th {
    color: #008800;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75em;
    letter-spacing: 1px;
}

tr:hover {
    background: #0a1a0a;
}

label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85em;
    font-family: 'Fira Code', 'Courier New', monospace;
}

input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #00ff00;
    cursor: pointer;
    filter: hue-rotate(0deg) saturate(2);
}

input[type="text"],
input[type="password"],
textarea,
select {
    background: #0d1a0d;
    border: 1px solid #003300;
    color: #00ff00;
    padding: 8px 12px;
    font-size: 0.85em;
    width: 100%;
    font-family: 'Fira Code', 'Courier New', monospace;
    outline: none;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: #00ff00;
    box-shadow: 0 0 4px rgba(0, 255, 0, 0.2);
}

textarea {
    resize: vertical;
}

select option {
    background: #0d1a0d;
    color: #00ff00;
}

button, .btn {
    background: #003300;
    color: #00ff00;
    border: 1px solid #005500;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.85em;
    text-decoration: none;
    display: inline-block;
    font-family: 'Fira Code', 'Courier New', monospace;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

button:hover, .btn:hover {
    background: #005500;
    border-color: #00ff00;
    box-shadow: 0 0 6px rgba(0, 255, 0, 0.3);
}

button:active, .btn:active {
    background: #007700;
}

.btn-small {
    padding: 4px 10px;
    font-size: 0.78em;
}

.btn-secondary {
    background: #0a1a0a;
    border-color: #003300;
    color: #008800;
}

.btn-secondary:hover {
    background: #0d2a0d;
    border-color: #005500;
    color: #00ff00;
}

.btn-danger {
    background: #1a0000;
    border-color: #330000;
    color: #ff4444;
}

.btn-danger:hover {
    background: #2a0000;
    border-color: #ff4444;
}

.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.85em;
    border: 1px solid;
}

.alert-success {
    background: #0a1a0a;
    border-color: #003300;
    color: #00ff00;
}

.alert-error {
    background: #1a0a0a;
    border-color: #330000;
    color: #ff4444;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #008800;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    background: #0a1a0a;
    padding: 2px 8px;
    font-size: 0.72em;
    color: #008800;
    border: 1px solid #003300;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.badge-admin {
    background: #003300;
    color: #00ff00;
    border-color: #005500;
}

.login-box {
    max-width: 420px;
    margin: 100px auto;
}

.login-box .card {
    padding: 40px;
    border-color: #005500;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
}

.login-box h2::before {
    content: '';
}

.login-box button {
    width: 100%;
    margin-top: 10px;
}

.rules-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.rules-grid label {
    background: #0a1a0a;
    padding: 6px 12px;
    border: 1px solid #002200;
    transition: all 0.2s;
}

.rules-grid label:hover {
    border-color: #005500;
    background: #0d2a0d;
}

.empty {
    color: #004400;
    font-style: normal;
    padding: 20px;
    text-align: center;
    font-size: 0.85em;
}

.empty::before {
    content: '> ';
}

.channel-name {
    font-weight: 600;
    color: #00ff00;
}

code {
    font-family: 'Fira Code', 'Courier New', monospace;
    background: #0a1a0a;
    padding: 1px 6px;
    border: 1px solid #003300;
    font-size: 0.85em;
    color: #00ff00;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0c0c0c;
}

::-webkit-scrollbar-thumb {
    background: #003300;
}

::-webkit-scrollbar-thumb:hover {
    background: #005500;
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 10px;
    }
    header nav a {
        margin: 0 10px;
    }
    body {
        font-size: 13px;
    }
}
