/* WA API Sender - Admin Dashboard CSS */
:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --primary-light: #cfe2ff;
    --secondary: #ffc107;
    --secondary-dark: #cc9a06;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #020617;
    --dark-light: #0f172a;
    --light: #f8fafc;
    --text: #f8fafc;
    --text-light: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #020617;
    background-image:
        radial-gradient(circle at 80% 20%, rgba(255, 193, 7, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(13, 110, 253, 0.05) 0%, transparent 50%),
        radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 30px 30px;
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text);
}

/* Mascot */
.mascot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 150px;
    z-index: 1000;
    pointer-events: none;
    transition: all 0.5s ease;
}

.mascot-container img {
    width: 100%;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.mascot-welcome {
    position: absolute;
    top: -60px;
    right: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    padding: 10px 15px;
    border-radius: 15px 15px 0 15px;
    box-shadow: 0 5px 15px var(--shadow);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: #020617;
    border-right: 1px solid var(--border);
    padding: 2rem 0;
    z-index: 1000;
}

.sidebar-logo {
    padding: 0 2rem 2rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo h2 {
    color: #ffc107;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 0 15px rgba(255, 193, 7, 0.3);
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    color: #fff;
    background: rgba(255, 193, 7, 0.05);
}

.sidebar-menu a.active {
    color: #ffc107;
}

.sidebar-menu a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #ffc107;
    box-shadow: 0 0 10px #ffc107;
}

/* Main Content */
.main-content {
    margin-left: 260px;
    padding: 2.5rem;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.header {
    margin-bottom: 3rem;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
}

.header h1 span {
    color: #ffc107;
}

/* Glass Card */
.card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-header h3 {
    color: #ffc107;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
}

.card-body {
    padding: 2rem;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 193, 7, 0.3);
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #ffc107;
    margin-bottom: 0.25rem;
}

.stat-card p {
    color: #94a3b8;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tables */
.table-responsive table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 1rem;
    color: #ffc107;
    font-weight: 700;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}

/* Forms */
.form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #e2e8f0;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #ffc107;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.1);
}

/* Buttons */
.btn {
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: #ffc107;
    color: #020617;
}

.btn-primary:hover {
    background: #eab308;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Alerts */
.alert {
    padding: 1.25rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
    }

    .sidebar-logo h2,
    .sidebar-menu span {
        display: none;
    }

    .main-content {
        margin-left: 80px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1.5rem;
    }

    .header h1 {
        font-size: 1.75rem;
    }
}