/* =====================================================
   MODERN PREMIUM DARK (#0a0b10) & RED THEME
   ===================================================== */

/* ===== GLOBAL BACKGROUND ===== */
body {
    background: linear-gradient(135deg, #0a0b10, #11131a);
    color: #f1f1f1;
    transition: all 0.3s ease-in-out;
}

.main-content,
.page-content {
    background: transparent !important;
}

/* Smooth page fade-in */
.page-content {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== GLASS TOPBAR ===== */
#page-topbar {
    background: rgba(10, 11, 16, 0.9) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,0,0,0.15);
    box-shadow: 0 4px 25px rgba(0,0,0,0.7);
}

.header-item,
.noti-icon i {
    color: #ffffff !important;
}

/* ===== SIDEBAR ===== */
.vertical-menu {
    background: linear-gradient(180deg, #0a0b10, #11131a);
    box-shadow: 4px 0 30px rgba(0,0,0,0.8);
}

.navbar-brand-box {
    background: transparent !important;
}

/* Sidebar links */
#sidebar-menu ul li a {
    color: #ffffff !important;
    transition: all 0.3s ease;
    border-radius: 10px;
    margin: 4px 12px;
}

/* Hover animation */
#sidebar-menu ul li a:hover {
    background: rgba(255, 0, 0, 0.12);
    color: #ff3b3b !important;
    transform: translateX(6px);
}

/* Active menu */
.mm-active > a {
    background: linear-gradient(90deg, #ff0000, #b30000);
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(255,0,0,0.6);
}

#sidebar-menu ul li a i {
    color: #ffffff !important;
    transition: all 0.3s ease;
}

#sidebar-menu ul li a:hover i {
    transform: scale(1.2);
    color: #ff3b3b !important;
}

/* ===== CARDS ===== */
.card {
    background: rgba(18, 20, 28, 0.9);
    border: 1px solid rgba(255,0,0,0.1);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(255,0,0,0.25);
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, #ff0000, #cc0000);
    border: none;
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255,0,0,0.5);
}

/* ===== INPUTS ===== */
.form-control {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,0,0,0.25);
    color: #ffffff !important;
    border-radius: 8px;
}

.form-control:focus {
    border-color: #ff0000;
    box-shadow: 0 0 0 0.15rem rgba(255,0,0,0.4);
}

/* ===== TABLES ===== */
.table {
    color: #f1f1f1;
}

.table thead th {
    background-color: rgba(255,0,0,0.08);
    border-color: rgba(255,0,0,0.15);
}

.table td {
    border-color: rgba(255,0,0,0.08);
}

/* ===== DROPDOWNS ===== */
.dropdown-menu {
    background: #11131a;
    border: 1px solid rgba(255,0,0,0.15);
    border-radius: 12px;
}

.dropdown-item {
    color: #dddddd;
}

.dropdown-item:hover {
    background: rgba(255,0,0,0.2);
    color: #ffffff;
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(10, 11, 16, 0.95) !important;
    color: #aaaaaa;
    border-top: 1px solid rgba(255,0,0,0.15);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0b10;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(#ff0000, #990000);
    border-radius: 10px;
}

/* ===== AUTH PAGE FIX ===== */
.auth-body-bg .card{
    background-color: #141720 !important;
}

/* ===== NOTIFICATION DOT ANIMATION ===== */
.noti-dot {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

/* ===== SMOOTH GLOBAL TRANSITIONS ===== */
* {
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease;
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #050816; /* Dark navy background like screenshot */
    top: 0;
    left: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid transparent;
    border-top: 4px solid #ff1a1a;   /* Red spinner */
    border-right: 4px solid #ff1a1a; /* Red arc effect */
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}