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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0f0f0f;
    color: #fff;
    line-height: 1.6;
}

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

.panel {
    background: #1a1a2e;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #333;
}

h1, h2, h3 {
    color: #fff;
    margin-bottom: 16px;
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 22px;
}

h3 {
    font-size: 18px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #ccc;
}

input[type="text"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px;
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #e94560;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn:hover {
    background: #d63850;
}

.btn:disabled {
    background: #555;
    cursor: not-allowed;
}

.btn-secondary {
    background: #333;
}

.btn-secondary:hover {
    background: #444;
}

.btn-danger {
    background: #c41e3a;
}

.btn-danger:hover {
    background: #a01828;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-alto {
    background: #c41e3a;
    color: #fff;
}

.badge-medio {
    background: #ff9500;
    color: #000;
}

.badge-bajo {
    background: #34c759;
    color: #000;
}

.badge-ataque {
    background: #c41e3a;
    color: #fff;
}

.badge-critica {
    background: #ff9500;
    color: #000;
}

.badge-desinformacion {
    background: #af52de;
    color: #fff;
}

.badge-otro {
    background: #555;
    color: #fff;
}

.badge-pending {
    background: #ff9500;
    color: #000;
}

.badge-approved {
    background: #34c759;
    color: #000;
}

.badge-dismissed {
    background: #555;
    color: #fff;
}

/* Cards */
.card {
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.card-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.card-content {
    margin-bottom: 12px;
}

.card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #333;
}

th {
    color: #ccc;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    font-size: 14px;
}

tr:hover {
    background: rgba(233, 69, 96, 0.05);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 20px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #e94560;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Login Page */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: #1a1a2e;
    border-radius: 8px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 32px;
}

/* Nav */
.nav {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
}

.nav a {
    color: #ccc;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.2s;
}

.nav a:hover,
.nav a.active {
    color: #fff;
    background: #e94560;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-error {
    background: rgba(196, 30, 58, 0.2);
    border: 1px solid #c41e3a;
    color: #ff6b85;
}

.alert-success {
    background: rgba(52, 199, 89, 0.2);
    border: 1px solid #34c759;
    color: #6ee787;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-16 {
    margin-top: 16px;
}

.flex {
    display: flex;
}

.gap-8 {
    gap: 8px;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 12px;
    }

    .panel {
        padding: 16px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    table {
        font-size: 13px;
    }

    th, td {
        padding: 8px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .card-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
