:root {
    --bg-dark: #0a0f1e;
    --card-bg: #1e293b;
    --accent: #25d366; /* WhatsApp Green */
    --accent-hover: #128c7e;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border: rgba(255, 255, 255, 0.05);
    --success: #10b981;
    --error: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 280px;
    background: var(--card-bg);
    border-right: 1px solid var(--border);
    padding: 30px 20px;
    height: 100vh;
    position: fixed;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 40px;
}

.nav-menu {
    margin-top: 40px;
    list-style: none;
}

.nav-item {
    margin-bottom: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
}

.nav-link i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.nav-link:hover, .nav-link.active {
    background: rgba(37, 211, 102, 0.1);
    color: var(--accent);
}

.nav-link.active {
    background: var(--accent);
    color: #000;
}

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

h1 i {
    color: var(--accent);
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 20px;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}

input, textarea, select {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    padding: 15px 20px;
    border-radius: 14px;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: 0.3s;
}

input:focus, textarea:focus {
    border-color: var(--accent);
    outline: none;
    background: rgba(0, 0, 0, 0.3);
}

button {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 18px 30px;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}

button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

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

th {
    text-align: left;
    padding: 15px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 20px 15px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
}

.status-success { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.status-error { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.animate-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    body { padding: 20px 10px; }
    .card { padding: 20px; }
}
