:root {
    --bg-dark: #0a0f16;
    --bg-card: rgba(255, 255, 255, 0.03);
    --primary: #e27602;
    --secondary: #3498db;
    --primary-glow: #d24e01;
    --text-main: #ffffff;
    --text-muted: #a0aec0;
    --border-light: rgba(255, 255, 255, 0.1);
    --radius: 12px;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#auth-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

header {
    padding: 2rem 0;
    text-align: center;
    position: relative;
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -0.05em;

    background: linear-gradient(to right, #ffffff 30%, #e27602);
    -webkit-background-clip: text;
    background-clip: text;

    color: white;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.btn-logout {
    background: none;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-logout:hover {
    border-color: var(--danger);
    color: var(--danger);
}

.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.nav-tab {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
}

.nav-tab.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.view-section {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.stat-val {
    font-size: 2rem;
    font-weight: 900;
    display: block;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 12px;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-light);
}

td {
    padding: 12px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
    vertical-align: middle;
}

.comment-input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-light);
    color: white;
    padding: 6px;
    border-radius: 6px;
    width: 100%;
    outline: none;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

.bg-green {
    background: rgba(226, 118, 2, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.bg-gray {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
    vertical-align: middle;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ef4444;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:checked+.slider:before {
    transform: translateX(16px);
}

input[type="text"],
input[type="url"],
textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    color: white;
    padding: 12px;
    border-radius: 8px;
    outline: none;
    width: 100%;
    margin-bottom: 10px;
}

input[type="file"] {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    color: white;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 10px;
    cursor: pointer;
}

button.primary {
    background: var(--primary);
    color: black;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}

button.primary:hover {
    opacity: 0.9;
}

.news-card {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
}

.news-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px;
    border-radius: 10px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background: var(--primary);
    color: black;
    box-shadow: 0 0 10px rgba(226, 118, 2, 0.3);
}

#mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    visibility: hidden;
    background: rgba(8, 8, 8, 0.98);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 90;
}

#mobile-menu.open {
    max-height: 100vh;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    padding-bottom: 2rem;
}

#navbar.scrolled + #mobile-menu {
    top: 70px;
}

#navbar {
    height: 80px;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    height: 70px;
    background: rgba(8, 8, 8, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.scrolled .nav-container {
    height: 70px;
}
