/*
 * Vibe Buddy - Premium Admin Panel Design
 * Professional 3D Elevated Dark Red Theme
 * Updated: 2025-11-07
 */

/* ===========================
   GLOBAL PROFESSIONAL FONTS
   =========================== */

* {
	font-family: 'Poppins', 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Ensure good contrast - dark text on light, light on dark */
body {
	color: #2c3e50;
}

.text-white, .widget-stat .media-body, .widget-stat .media > span,
.deznav .metismenu > li > a, .card-header, .btn-primary {
	color: #ffffff !important;
}

/* Header text should be red for visibility on glass white background */
.header .header-info span,
.header .header-info small,
.header .nav-link,
.header-right .header-profile > a.nav-link .header-info span,
.header-right .header-profile > a.nav-link .header-info small {
	color: red !important;
}

.text-dark, .form-label, .form-control,
.table tbody td {
	color: #2c3e50 !important;
}

/* Regular card body text is dark */
.card-body {
	color: #2c3e50;
}

/* BUT stat cards must have white text - override with higher specificity */
.widget-stat.card .card-body,
.stat-card.card .card-body,
div.widget-stat .card-body,
div.stat-card .card-body {
	color: #ffffff !important;
}

/* Fix any remaining contrast issues */
.bg-dark * {
	color: #ffffff !important;
}

.bg-light * {
	color: #2c3e50 !important;
}

/* ===========================
   SIDEBAR MENU - 3D ELEVATED PROFESSIONAL DESIGN
   =========================== */

/* Main sidebar container with RED background */
.deznav {
    background: linear-gradient(180deg, #8B0000 0%, #DC143C 50%, #B22222 100%);
    box-shadow: 4px 0 30px rgba(220, 20, 60, 0.4);
    border-radius: 25px;
    margin: 15px;
    padding: 15px 8px;
    height: calc(100vh - 120px);
    overflow: hidden;
    position: fixed;
    top: 90px;
    width: 280px;
    z-index: 2;
}

/* Scrollable area inside sidebar */
.deznav-scroll {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 5px;
}

/* Custom scrollbar for sidebar */
.deznav-scroll::-webkit-scrollbar {
    width: 5px;
}

.deznav-scroll::-webkit-scrollbar-track {
    background: rgba(220, 20, 60, 0.05);
    border-radius: 10px;
}

.deznav-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6B0000 0%, #DC143C 100%);
    border-radius: 10px;
}

.deznav-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #DC143C 0%, #FF4444 100%);
}

/* Menu items container */
.deznav .metismenu {
    padding: 0;
    margin: 0;
}

.deznav .metismenu > li {
    margin: 8px 0;
    position: relative;
    list-style: none;
}

/* Menu links - RED background with WHITE text */
.deznav .metismenu > li > a {
    background: linear-gradient(135deg, #6B0000 0%, #DC143C 50%, #8B0000 100%);
    color: #ffffff;
    border-radius: 18px;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

/* Glossy shine effect on menu items */
.deznav .metismenu > li > a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent);
    transition: left 0.5s ease;
}

.deznav .metismenu > li > a:hover::before {
    left: 100%;
}

/* Hover effect - Brighter red glow */
.deznav .metismenu > li > a:hover {
    background: linear-gradient(135deg, #DC143C 0%, #FF4444 50%, #DC143C 100%) !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    transform: translateX(5px) translateY(-2px);
    box-shadow:
        0 8px 25px rgba(255, 255, 255, 0.4),
        0 0 15px rgba(255, 255, 255, 0.3);
}

/* Force icon color on hover */
.deznav .metismenu > li > a:hover i {
    color: #ffffff !important;
}

/* Force text color on hover */
.deznav .metismenu > li > a:hover .nav-text {
    color: #ffffff !important;
}

/* Active/Selected menu item - Bright red with white glow */
.deznav .metismenu > li.mm-active > a {
    background: linear-gradient(135deg, #DC143C 0%, #FF4444 50%, #DC143C 100%);
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 6px 20px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow:
            0 6px 20px rgba(220, 20, 60, 0.6),
            0 0 20px rgba(220, 20, 60, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.25),
            inset 0 -1px 0 rgba(0, 0, 0, 0.25);
    }
    50% {
        box-shadow:
            0 6px 20px rgba(220, 20, 60, 0.8),
            0 0 30px rgba(220, 20, 60, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    }
}

/* Icon styling - WHITE icons - HIGH SPECIFICITY OVERRIDE */
.deznav .metismenu li a i,
.deznav .metismenu > li > a i,
.deznav .metismenu > li > a > i,
.deznav .metismenu li > a i,
.deznav .metismenu i[class*="flaticon"] {
    color: #ffffff !important;
    font-size: 20px;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    margin-right: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Ensure ALL icons in sidebar are white */
.deznav i[class*="flaticon"],
.deznav i[class*="fa-"],
.deznav .fas,
.deznav .far,
.deznav .fab,
.deznav .flaticon-381-credit-card,
.deznav .flaticon-025-dashboard,
.deznav .flaticon-041-graph,
.deznav .flaticon-022-copy,
.deznav .flaticon-381-user-9,
.deznav .fa-wallet {
    color: #ffffff !important;
}

/* Icon animation on hover */
.deznav .metismenu > li > a:hover i {
    transform: scale(1.1) rotateY(360deg);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Nav text */
.deznav .metismenu .nav-text {
    font-size: 14px;
    font-weight: 600;
    flex: 1;
}

/* Replace diamond arrow with professional expand/collapse icon */
.deznav .metismenu .has-arrow::after {
    content: "\f105"; /* FontAwesome chevron-right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 20px;
    font-size: 12px;
    transition: all 0.3s ease;
    border: none !important;
    width: auto;
    height: auto;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 8px;
    color: #ffffff !important;
    transform: rotate(0deg);
}

.deznav .metismenu .has-arrow[aria-expanded="true"]::after {
    content: "\f107"; /* FontAwesome chevron-down */
    transform: rotate(0deg);
    background: rgba(255, 255, 255, 0.3);
}

/* ===========================
   SUBMENU STYLING - NESTED INSIDE SIDEBAR
   =========================== */

/* Submenu - Display nested inside RED sidebar */
.deznav .metismenu ul {
    background: rgba(139, 0, 0, 0.5);
    border-radius: 12px;
    margin: 5px 0 5px 15px !important;
    padding: 8px 0;
    border-left: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
    display: none;
    transition: all 0.3s ease;
}

/* Show submenu when parent is active or expanded */
.deznav .metismenu > li > a[aria-expanded="true"] + ul,
.deznav .metismenu li.mm-active > ul,
.deznav .metismenu > li:hover > ul {
    display: block !important;
}

/* Submenu items */
.deznav .metismenu ul li {
    margin: 4px 0;
    list-style: none;
}

.deznav .metismenu ul a {
    color: #FFD700 !important;
    padding: 10px 15px 10px 25px !important;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    display: block;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
    text-decoration: none;
    background: transparent;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Submenu hover - White background with dark text */
.deznav .metismenu ul a:hover {
    background: #ffffff;
    color: #8B0000 !important;
    border-left: 3px solid #DC143C;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
    text-shadow: none;
}

/* Submenu active item */
.deznav .metismenu ul li.mm-active > a {
    background: #ffffff;
    color: #DC143C !important;
    border-left: 3px solid #DC143C;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.5);
    text-shadow: none;
}

/* Submenu scrollbar */
.deznav .metismenu ul::-webkit-scrollbar {
    width: 4px;
}

.deznav .metismenu ul::-webkit-scrollbar-track {
    background: rgba(220, 20, 60, 0.05);
    border-radius: 10px;
}

.deznav .metismenu ul::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6B0000 0%, #DC143C 100%);
    border-radius: 10px;
}

/* ===========================
   ENHANCED CARD STYLING - CREATIVE DASHBOARD DESIGN
   =========================== */

/* Dashboard cards container */
.row {
    margin: 0 -10px;
}

.col-xl-3, .col-xxl-6, .col-lg-6, .col-sm-6 {
    padding: 0 10px;
    margin-bottom: 20px;
}

/* Widget stat cards - Modern elevated design */
.widget-stat {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 140px;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Remove shake/tilt on hover */
.widget-stat:hover {
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Animated gradient background on hover */
.widget-stat::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.widget-stat:hover::before {
    opacity: 1;
    animation: rotateGradient 3s linear infinite;
}

@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Card body with motion animation inside */
.widget-stat .card-body {
    padding: 25px 20px;
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Icon container with motion animation */
.widget-stat .media > span {
    height: 65px;
    width: 65px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Icon background animation on hover */
.widget-stat .media > span::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.widget-stat:hover .media > span::before {
    width: 120%;
    height: 120%;
}

/* Icon rotation on hover */
.widget-stat:hover .media > span i {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(-10deg);
    }
    75% {
        transform: scale(1.1) rotate(10deg);
    }
}

/* Text animation on hover */
.widget-stat .media-body {
    flex: 1;
    margin-left: 15px;
}

.widget-stat:hover .media-body h3 {
    animation: countUp 0.5s ease;
}

@keyframes countUp {
    0% {
        transform: translateY(10px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.widget-stat:hover .media-body p {
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    0% {
        transform: translateX(-10px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Card colors with enhanced gradients */
.widget-stat.bg-warning {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
}

.widget-stat.bg-info {
    background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
}

.widget-stat.bg-primary {
    background: linear-gradient(135deg, #6B0000 0%, #DC143C 100%);
}

.widget-stat.bg-danger {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
}

.widget-stat.bg-success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

/* Glowing border on hover */
.widget-stat::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    pointer-events: none;
}

.widget-stat:hover::after {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow:
        0 0 20px rgba(255, 255, 255, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

/* ===========================
   ENHANCED CARD STYLING
   =========================== */

.card {
    border-radius: 20px;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.card:hover {
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(220, 20, 60, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.card-header {
    background: linear-gradient(135deg, #6B0000 0%, #DC143C 50%, #8B0000 100%);
    color: #ffffff;
    border-radius: 20px 20px 0 0;
    padding: 20px 25px;
    border-bottom: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.card-header h4 {
    color: #ffffff;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card-body {
    padding: 25px;
}

/* ===========================
   BUTTON ENHANCEMENTS - GLOSSY 3D
   =========================== */

.btn-primary {
    background: linear-gradient(135deg, #6B0000 0%, #DC143C 50%, #8B0000 100%);
    border: none;
    border-radius: 15px;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow:
        0 4px 15px rgba(220, 20, 60, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #DC143C 0%, #FF4444 50%, #DC143C 100%);
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(220, 20, 60, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.btn-rounded {
    border-radius: 25px;
}

/* ===========================
   FORM STYLING - MODERN 3D
   =========================== */

.form-control {
    border-radius: 12px;
    border: 2px solid #e0e6ed;
    padding: 12px 15px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
    border-color: #DC143C;
    box-shadow:
        0 0 0 0.2rem rgba(220, 20, 60, 0.15),
        inset 0 2px 4px rgba(220, 20, 60, 0.1);
    transform: translateY(-1px);
}

/* ===========================
   HEADER ENHANCEMENTS - LIQUID GLASS WHITE WITH 3D RED BORDER
   =========================== */

.nav-header {
    /* RED Background */
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 50%, #B22222 100%) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    /* 3D Elevated White Border */
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 0 0 25px 25px;
    margin: 0 15px;

    /* 3D Elevated Effect with Red Glow */
    box-shadow:
        0 8px 32px rgba(220, 20, 60, 0.4),
        0 4px 16px rgba(220, 20, 60, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(220, 20, 60, 0.3);

    z-index: 10 !important;
    position: relative;
    overflow: hidden;
}

/* Shining Gloss Effect on Header */
.nav-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%);
    animation: headerShine 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes headerShine {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

/* Glass Reflection Effect */
.nav-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.4) 0%,
        transparent 100%);
    border-radius: 0 0 100% 100%;
    pointer-events: none;
}

.brand-title {
    /* White Font on Red Background */
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: unset !important;
    font-weight: 700;
    font-size: 18px !important;
    letter-spacing: 0.5px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 2;
}

/* Hamburger Menu Lines - WHITE on red background */
.nav-header .hamburger .line {
    background-color: #ffffff !important;
}

.nav-control .hamburger .line {
    background-color: #ffffff !important;
}

/* Logo Image Styling */
.nav-header .logo-abbr {
    filter: drop-shadow(0 2px 4px rgba(220, 20, 60, 0.3));
    position: relative;
    z-index: 2;
}

/* Brand Logo Wrapper */
.nav-header .brand-logo {
    position: relative;
    z-index: 2;
}

.header {
    /* WHITE Background */
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(248, 249, 250, 0.95) 50%,
        rgba(255, 255, 255, 0.98) 100%) !important;

    /* 3D Elevated Effect with Red Glow */
    box-shadow:
        0 4px 20px rgba(220, 20, 60, 0.25),
        0 2px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.8);

    border: 2px solid #DC143C;
    border-radius: 0 0 20px 20px;
    margin: 0 15px;
    z-index: 9 !important;
    position: relative;
}

/* Welcome text and username - RED color on white background */
.header .dashboard_bar,
.header .header-info span,
.header .header-info small {
    color: #DC143C !important;
    text-shadow: none;
    font-weight: 600;
}

/* Ensure profile dropdown icon is visible on white header */
.header .nav-link {
    color: #DC143C !important;
}

.header .header-profile .nav-link img {
    border: 2px solid #DC143C;
    border-radius: 50%;
}

/* ===========================
   SETTINGS PAGE SPECIFIC
   =========================== */

.h5_set {
    background: linear-gradient(135deg, #6B0000 0%, #DC143C 50%, #8B0000 100%);
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 15px;
    margin: 25px 0 20px 0;
    font-weight: 600;
    box-shadow:
        0 4px 12px rgba(220, 20, 60, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.h5_set i {
    margin-right: 10px;
}

/* Ensure form buttons are visible */
form button[type="submit"] {
    margin-top: 20px;
    min-height: 45px;
    font-size: 16px;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ===========================
   TABLE ENHANCEMENTS - 3D STYLE
   =========================== */

.table {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.table thead th {
    background: linear-gradient(135deg, #6B0000 0%, #DC143C 100%);
    color: #ffffff;
    font-weight: 600;
    border: none;
    padding: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: #fff5f5;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.1);
}

/* ===========================
   BADGE STYLING - GLOSSY
   =========================== */

.badge {
    border-radius: 10px;
    padding: 6px 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ===========================
   DROPDOWN MENU STYLING - 3D
   =========================== */

.dropdown-menu {
    border-radius: 15px;
    border: none;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 10px;
}

.dropdown-item {
    border-radius: 10px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #6B0000 0%, #DC143C 100%);
    color: #ffffff;
    transform: translateX(5px);
}

/* ===========================
   ZOOZOO DANCING PRELOADER - WHITE WITH RED BORDER
   =========================== */

#preloader {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 99999;
    left: 0;
    top: 0;
}

/* Ensure preloader can be hidden */
#preloader.hide,
#preloader[style*="display: none"] {
    display: none !important;
}

/* Hide default loader dots */
#preloader .loader {
    display: none !important;
}

#preloader .loader .loader--dot {
    display: none !important;
}

/* ZOOZOO Character Animations */
.zoozoo-preloader {
    width: 80px;
    height: 120px;
    position: relative;
    animation: zoozoo-dance 1s infinite ease-in-out;
}

.zoozoo-preloader .head {
    width: 45px;
    height: 45px;
    background: #ffffff;
    border: 3px solid #DC143C;
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(220, 20, 60, 0.3);
}

.zoozoo-preloader .eye {
    width: 8px;
    height: 8px;
    background: #DC143C;
    border-radius: 50%;
    position: absolute;
    top: 12px;
    animation: zoozoo-blink 3s infinite;
}

.zoozoo-preloader .eye.left {
    left: 10px;
}

.zoozoo-preloader .eye.right {
    right: 10px;
}

@keyframes zoozoo-blink {
    0%, 90%, 100% {
        height: 8px;
    }
    95% {
        height: 2px;
    }
}

.zoozoo-preloader .mouth {
    width: 15px;
    height: 8px;
    border: 2px solid #DC143C;
    border-top: none;
    border-radius: 0 0 20px 20px;
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: zoozoo-smile 1s infinite ease-in-out;
}

@keyframes zoozoo-smile {
    0%, 100% {
        width: 15px;
    }
    50% {
        width: 22px;
    }
}

.zoozoo-preloader .body {
    width: 65px;
    height: 55px;
    background: #ffffff;
    border: 3px solid #DC143C;
    border-radius: 12px 12px 25px 25px;
    margin: 5px auto 0;
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.2);
    position: relative;
}

.zoozoo-preloader .arm {
    width: 8px;
    height: 30px;
    background: #ffffff;
    border: 2px solid #DC143C;
    border-radius: 10px;
    position: absolute;
    top: 75px;
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.2);
}

.zoozoo-preloader .arm.left {
    left: 10px;
    animation: zoozoo-wave-left 0.5s infinite alternate;
}

.zoozoo-preloader .arm.right {
    right: 10px;
    animation: zoozoo-wave-right 0.5s infinite alternate;
}

@keyframes zoozoo-wave-left {
    from {
        transform: rotate(-20deg);
    }
    to {
        transform: rotate(-40deg);
    }
}

@keyframes zoozoo-wave-right {
    from {
        transform: rotate(20deg);
    }
    to {
        transform: rotate(40deg);
    }
}

.zoozoo-preloader .leg {
    width: 10px;
    height: 25px;
    background: #ffffff;
    border: 2px solid #DC143C;
    border-radius: 0 0 10px 10px;
    position: absolute;
    bottom: -25px;
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.2);
}

.zoozoo-preloader .leg.left {
    left: 15px;
    animation: zoozoo-step-left 0.5s infinite alternate;
}

.zoozoo-preloader .leg.right {
    right: 15px;
    animation: zoozoo-step-right 0.5s infinite alternate;
}

@keyframes zoozoo-step-left {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(5px);
    }
}

@keyframes zoozoo-step-right {
    from {
        transform: translateY(5px);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes zoozoo-dance {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(-5deg);
    }
    75% {
        transform: translateY(-10px) rotate(5deg);
    }
}

#preloader .preloader-text {
    background: linear-gradient(135deg, #6B0000 0%, #DC143C 50%, #8B0000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px;
    font-weight: 600;
    margin-top: 30px;
    text-align: center;
    animation: zoozoo-pulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(220, 20, 60, 0.3));
}

@keyframes zoozoo-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* ===========================
   CONTENT AREA
   =========================== */

.content-body {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 20px;
    margin-left: 310px;
    border-radius: 20px;
}

.form-head h2 {
    color: #8B0000;
    font-weight: 700;
}

.form-head h2.gradient-text {
    background: linear-gradient(135deg, #6B0000 0%, #DC143C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    font-size: 28px;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 1199px) {
    .deznav {
        width: 260px;
    }

    .content-body {
        margin-left: 290px;
    }
}

@media (max-width: 991px) {
    .deznav {
        transform: translateX(-100%);
    }

    .content-body {
        margin-left: 0;
    }
}

/* ===========================
   UTILITY CLASSES
   =========================== */

.gradient-bg {
    background: linear-gradient(135deg, #6B0000 0%, #DC143C 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #6B0000 0%, #DC143C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-lg-custom {
    box-shadow:
        0 10px 30px rgba(220, 20, 60, 0.3),
        0 0 0 1px rgba(220, 20, 60, 0.1);
}

/* Make sure submit buttons in all forms are visible */
button[type="submit"],
input[type="submit"] {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 100;
}

/* ===========================
   COLLAPSED SIDEBAR - RED GRADIENT ICONS WITH WHITE SYMBOLS
   =========================== */

/* When sidebar is collapsed (menu-toggle), style the icon containers */
[data-sidebar-style="full"][data-layout="vertical"] .menu-toggle .deznav .metismenu > li > a {
    /* Red Gradient Background for Icons */
    background: linear-gradient(135deg, #6B0000 0%, #DC143C 50%, #8B0000 100%) !important;
    border-radius: 16px !important;
    padding: 16px !important;
    margin: 8px 0 !important;

    /* 3D Elevated Effect */
    box-shadow:
        0 4px 15px rgba(220, 20, 60, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2) !important;

    transition: all 0.3s ease !important;
}

/* White Icon Symbols (Font Icons) */
[data-sidebar-style="full"][data-layout="vertical"] .menu-toggle .deznav .metismenu > li > a i {
    color: #ffffff !important;
    font-size: 22px !important;
    margin: 0 !important;
    display: block !important;
}

/* White Icon Symbols (SVG Icons) */
[data-sidebar-style="full"][data-layout="vertical"] .menu-toggle .deznav .metismenu > li > a svg {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
    max-width: 24px !important;
    max-height: 24px !important;
    margin: 0 auto !important;
}

/* Hover Effect on Collapsed Icons */
[data-sidebar-style="full"][data-layout="vertical"] .menu-toggle .deznav .metismenu > li > a:hover {
    background: linear-gradient(135deg, #DC143C 0%, #FF4444 50%, #DC143C 100%) !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow:
        0 6px 20px rgba(220, 20, 60, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2) !important;
}

/* Keep icons white on hover */
[data-sidebar-style="full"][data-layout="vertical"] .menu-toggle .deznav .metismenu > li > a:hover i,
[data-sidebar-style="full"][data-layout="vertical"] .menu-toggle .deznav .metismenu > li > a:hover svg {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

/* Active/Selected Collapsed Icon */
[data-sidebar-style="full"][data-layout="vertical"] .menu-toggle .deznav .metismenu > li.mm-active > a {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 50%, #B22222 100%) !important;
    box-shadow:
        0 6px 20px rgba(220, 20, 60, 0.6),
        0 0 20px rgba(220, 20, 60, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.25) !important;
}

/* Ensure white color on active icon (both font icons and SVG) */
[data-sidebar-style="full"][data-layout="vertical"] .menu-toggle .deznav .metismenu > li.mm-active > a i,
[data-sidebar-style="full"][data-layout="vertical"] .menu-toggle .deznav .metismenu > li.mm-active > a svg {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

/* Collapsed Sidebar Container Styling */
[data-sidebar-style="full"][data-layout="vertical"] .menu-toggle .deznav {
    background: #ffffff !important;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.1) !important;
    border-radius: 25px !important;
    padding: 15px 8px !important;
}

/* Collapsed Menu Items Padding */
[data-sidebar-style="full"][data-layout="vertical"] .menu-toggle .deznav .metismenu > li {
    padding: 0 15px !important;
}

/* Submenu when hovering over collapsed icon */
[data-sidebar-style="full"][data-layout="vertical"] .menu-toggle .deznav .metismenu li > ul {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border-radius: 18px !important;
    border: 2px solid #DC143C !important;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(220, 20, 60, 0.2) !important;
}

/* Submenu items in collapsed mode */
[data-sidebar-style="full"][data-layout="vertical"] .menu-toggle .deznav .metismenu li > ul a {
    color: #2c3e50 !important;
    padding: 10px 15px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
}

/* Submenu item hover in collapsed mode */
[data-sidebar-style="full"][data-layout="vertical"] .menu-toggle .deznav .metismenu li > ul a:hover {
    background: linear-gradient(135deg, #DC143C 0%, #FF4444 100%) !important;
    color: #ffffff !important;
    transform: translateX(5px) !important;
}

/* ===========================
   SMOOTH ANIMATIONS
   =========================== */

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.deznav .metismenu > li {
    animation: slideInLeft 0.5s ease forwards;
}

.deznav .metismenu > li:nth-child(1) { animation-delay: 0.05s; }
.deznav .metismenu > li:nth-child(2) { animation-delay: 0.1s; }
.deznav .metismenu > li:nth-child(3) { animation-delay: 0.15s; }
.deznav .metismenu > li:nth-child(4) { animation-delay: 0.2s; }
.deznav .metismenu > li:nth-child(5) { animation-delay: 0.25s; }
.deznav .metismenu > li:nth-child(6) { animation-delay: 0.3s; }
.deznav .metismenu > li:nth-child(7) { animation-delay: 0.35s; }
.deznav .metismenu > li:nth-child(8) { animation-delay: 0.4s; }
.deznav .metismenu > li:nth-child(9) { animation-delay: 0.45s; }

/* ===========================
   CREATIVE DASHBOARD STAT CARDS
   Modern, Compact, Innovative Design
   =========================== */

/* Base Card Design - Compact & Elevated */
.vibe-stat-card {
    position: relative;
    padding: 20px 24px;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 110px;
}

.vibe-stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 12px 35px rgba(220, 20, 60, 0.25),
        0 6px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Gradient Variations - Dark Red Theme */
.gradient-crimson {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
}

.gradient-ruby {
    background: linear-gradient(135deg, #6B0000 0%, #B22222 100%);
}

.gradient-wine {
    background: linear-gradient(135deg, #990000 0%, #CC2244 100%);
}

.gradient-burgundy {
    background: linear-gradient(135deg, #770000 0%, #AA0022 100%);
}

/* Icon Wrapper - Circular with Effects */
.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #ffffff;
    flex-shrink: 0;
    position: relative;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.vibe-stat-card:hover .stat-icon-wrapper {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.08);
}

/* Stat Content */
.stat-content {
    flex: 1;
    text-align: left;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin: 0 0 6px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Decorative Background Elements */
.stat-decoration {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.vibe-stat-card:hover .stat-decoration {
    transform: scale(1.3) translate(-10px, 10px);
    background: rgba(255, 255, 255, 0.08);
}

/* ===========================
   ICON ANIMATIONS - CREATIVE VARIETY
   =========================== */

/* 1. Pulse Animation */
@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

.pulse-animation {
    animation: pulse-icon 2s ease-in-out infinite;
}

/* 2. Neon Glow */
@keyframes neon-pulse {
    0%, 100% {
        box-shadow:
            0 0 10px rgba(255, 255, 255, 0.3),
            0 0 20px rgba(255, 255, 255, 0.2),
            inset 0 2px 4px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow:
            0 0 20px rgba(255, 255, 255, 0.5),
            0 0 30px rgba(255, 255, 255, 0.3),
            inset 0 2px 4px rgba(255, 255, 255, 0.2);
    }
}

.neon-glow {
    animation: neon-pulse 2.5s ease-in-out infinite;
}

/* 3. Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.vibe-stat-card:hover .glass-effect {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.5);
}

/* 4. Rotate on Hover */
.rotate-hover {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.vibe-stat-card:hover .rotate-hover {
    transform: rotate(360deg) scale(1.1);
}

/* 5. Wave Animation */
@keyframes wave-icon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(-10deg);
    }
    75% {
        transform: translateY(5px) rotate(10deg);
    }
}

.wave-animation {
    animation: wave-icon 3s ease-in-out infinite;
}

/* 6. Scale Hover */
.scale-hover {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vibe-stat-card:hover .scale-hover {
    transform: scale(1.15);
}

/* 7. Bounce Hover */
.bounce-hover {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.vibe-stat-card:hover .bounce-hover {
    animation: bounce-icon 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounce-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* 8. Glow Pulse */
@keyframes glow-pulse-anim {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3) drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
    }
}

.glow-pulse {
    animation: glow-pulse-anim 2s ease-in-out infinite;
}

/* 9. Flip on Hover */
.flip-hover {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.vibe-stat-card:hover .flip-hover {
    transform: rotateY(180deg);
}

/* 10. Premium Glow - Special Effect for Revenue Card */
@keyframes premium-glow-anim {
    0%, 100% {
        box-shadow:
            0 0 15px rgba(255, 215, 0, 0.4),
            0 0 25px rgba(255, 215, 0, 0.2),
            inset 0 2px 4px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow:
            0 0 25px rgba(255, 215, 0, 0.6),
            0 0 40px rgba(255, 215, 0, 0.3),
            inset 0 2px 4px rgba(255, 255, 255, 0.2);
    }
}

.premium-glow {
    animation: premium-glow-anim 2s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.25) !important;
}

/* Premium Card - Special Styling for Revenue */
.premium-card {
    border: 2px solid rgba(255, 215, 0, 0.3);
    position: relative;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(255, 215, 0, 0.1) 0%,
        transparent 50%,
        rgba(255, 215, 0, 0.05) 100%);
    pointer-events: none;
    border-radius: 18px;
}

.premium-card:hover {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow:
        0 12px 40px rgba(220, 20, 60, 0.3),
        0 0 30px rgba(255, 215, 0, 0.2);
}

/* Premium Shine Effect */
@keyframes premium-shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(300%) rotate(45deg);
    }
}

.premium-shine {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%);
    width: 50px;
    height: 200%;
    position: absolute;
    top: -50%;
    left: 0;
    animation: premium-shine 3s infinite;
}

/* ===========================
   RESPONSIVE DASHBOARD CARDS
   =========================== */

@media (max-width: 1399px) {
    .vibe-stat-card {
        padding: 18px 20px;
        min-height: 100px;
    }

    .stat-icon-wrapper {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }

    .stat-number {
        font-size: 28px;
    }
}

@media (max-width: 991px) {
    .vibe-stat-card {
        padding: 16px 18px;
        min-height: 95px;
        gap: 15px;
    }

    .stat-icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 22px;
        border-radius: 14px;
    }

    .stat-number {
        font-size: 26px;
    }

    .stat-label {
        font-size: 12px;
    }
}

@media (max-width: 575px) {
    .vibe-stat-card {
        padding: 14px 16px;
        min-height: 85px;
        border-radius: 16px;
    }

    .stat-icon-wrapper {
        width: 45px;
        height: 45px;
        font-size: 20px;
        border-radius: 12px;
    }

    .stat-number {
        font-size: 24px;
    }
}
.deznav .metismenu > li:nth-child(10) { animation-delay: 0.5s; }

/* ===========================
   WIDGET STAT TEXT VISIBILITY FIX
   Ensure labels and values are clearly visible on colored backgrounds
   =========================== */

/* Force white text on all widget-stat cards */
.widget-stat .card-body,
.widget-stat .card-body *,
.widget-stat .media-body,
.widget-stat .media-body *,
.stat-card .card-body,
.stat-card .card-body *,
.stat-card .media-body,
.stat-card .media-body *,
.widget-stat.stat-card .card-body *,
.widget-stat.stat-card .media-body * {
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Stat card labels - BOLD and VISIBLE */
.widget-stat .media-body p,
.widget-stat .media .media-body p,
.stat-card .media-body p,
.stat-card .media .media-body p,
.widget-stat.stat-card .media-body p {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 255, 255, 0.3) !important;
    margin-bottom: 10px !important;
    display: block !important;
}

/* Stat card values - LARGE and BOLD */
.widget-stat .media-body h3,
.widget-stat .media .media-body h3,
.stat-card .media-body h3,
.stat-card .media .media-body h3,
.widget-stat.stat-card .media-body h3 {
    color: #ffffff !important;
    font-size: 36px !important;
    font-weight: 800 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 255, 255, 0.2) !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Ensure gradient backgrounds have proper contrast */
.widget-stat.gradient-1,
.widget-stat.gradient-2,
.widget-stat.gradient-3,
.widget-stat.gradient-4,
.widget-stat[class*="bg-"] {
    position: relative;
}

/* Add subtle dark overlay for better text contrast */
.widget-stat.gradient-1::before,
.widget-stat.gradient-2::before,
.widget-stat.gradient-3::before,
.widget-stat.gradient-4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.2) 100%);
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

/* Keep content above overlay */
.widget-stat .card-body {
    position: relative;
    z-index: 1;
}

/* ===========================
   CRITICAL FIX: STAT CARD TEXT VISIBILITY
   Maximum specificity to ensure text is always visible
   =========================== */

/* FORCE ALL TEXT WHITE ON STAT CARDS - MAXIMUM SPECIFICITY */
html body .content-body .widget-stat.card.stat-card .card-body .media .media-body p,
html body .widget-stat.card .card-body .media .media-body p,
html body .stat-card .card-body .media .media-body p,
.widget-stat.stat-card .media-body p,
.widget-stat .media .media-body p,
div.widget-stat div.card-body div.media div.media-body p {
    color: #FFD700 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.5) !important;
    margin-bottom: 8px !important;
    background: transparent !important;
    position: relative !important;
    z-index: 10 !important;
}

/* FORCE NUMBER VALUES WHITE - MAXIMUM SPECIFICITY */
html body .content-body .widget-stat.card.stat-card .card-body .media .media-body h3,
html body .widget-stat.card .card-body .media .media-body h3,
html body .stat-card .card-body .media .media-body h3,
.widget-stat.stat-card .media-body h3,
.widget-stat .media .media-body h3,
div.widget-stat div.card-body div.media div.media-body h3 {
    color: #FFFFFF !important;
    font-size: 36px !important;
    font-weight: 800 !important;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5) !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    background: transparent !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Ensure media-body container is visible */
html body .widget-stat .media-body,
html body .stat-card .media-body,
.widget-stat.stat-card .media-body {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    position: relative !important;
    z-index: 5 !important;
}

/* Ensure card body allows overflow */
html body .widget-stat .card-body,
html body .stat-card .card-body {
    overflow: visible !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Icon styling on stat cards */
html body .widget-stat .media > span i,
html body .stat-card .media > span i {
    color: #FFFFFF !important;
    font-size: 32px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ===========================
   MANAGER DASHBOARD STAT CARDS
   Clean, visible styling
   =========================== */

/* Dark red background for stat cards */
.bg-dark-red {
    background: linear-gradient(135deg, #8B0000 0%, #B22222 50%, #8B0000 100%) !important;
}

/* Stat card icon container */
.widget-stat .stat-icon,
.stat-card .stat-icon {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 15px !important;
}

.widget-stat .stat-icon i,
.stat-card .stat-icon i {
    color: #FFFFFF !important;
    font-size: 30px !important;
}

/* Stat label text - GOLD color, VISIBLE */
.widget-stat .stat-label,
.stat-card .stat-label,
.widget-stat .media-body .stat-label,
.stat-card .media-body .stat-label,
p.stat-label {
    color: #FFD700 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 5px !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
    line-height: 1.3 !important;
}

/* Stat value text - WHITE color, VISIBLE */
.widget-stat .stat-value,
.stat-card .stat-value,
.widget-stat .media-body .stat-value,
.stat-card .media-body .stat-value,
h3.stat-value {
    color: #FFFFFF !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    line-height: 1.2 !important;
}

/* Ensure media-body takes available space */
.widget-stat .media-body,
.stat-card .media-body {
    flex: 1 !important;
    min-width: 0 !important;
}

/* Ensure media flexbox works properly */
.widget-stat .media,
.stat-card .media {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

/* ===========================
   NICE-SELECT DROPDOWN FIX
   Fix text cutoff on select dropdowns
   =========================== */

/* Main nice-select container */
.nice-select,
.form-control.nice-select,
.card-body .nice-select,
select.form-control + .nice-select {
    width: 100% !important;
    float: none !important;
    display: block !important;
    height: 45px !important;
    line-height: 43px !important;
    padding: 0 40px 0 15px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    position: relative !important;
}

/* The current selected text - FULL WIDTH - FIX FIRST LETTER CUTOFF */
.nice-select .current,
.nice-select span.current,
.form-control.nice-select .current,
.card-body .nice-select .current {
    display: inline-block !important;
    width: auto !important;
    max-width: calc(100% - 25px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    padding: 0 !important;
    margin: 0 !important;
    text-indent: 0 !important;
    position: relative !important;
    left: 0 !important;
    transform: none !important;
    vertical-align: middle !important;
    line-height: 43px !important;
}

/* Dropdown list */
.nice-select .list {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
}

/* Dropdown options */
.nice-select .option {
    white-space: nowrap !important;
    line-height: 40px !important;
    padding: 0 15px !important;
    text-indent: 0 !important;
}

/* Arrow position */
.nice-select:after {
    right: 15px !important;
    position: absolute !important;
    top: 50% !important;
    margin-top: -3px !important;
}

/* Ensure select event dropdown in cards shows full text */
.card .card-body select.form-control,
.card .card-body .nice-select {
    font-size: 14px !important;
}

/* Force visibility of first character */
.nice-select .current::first-letter {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* ===========================
   CRITICAL OVERRIDE - NAV HEADER & HEADER COLORS
   Maximum specificity to override main style.css
   =========================== */

/* NAV-HEADER: RED BACKGROUND - MAXIMUM OVERRIDE */
html body #main-wrapper .nav-header,
body .nav-header,
.nav-header,
[data-sidebar-style] .nav-header,
[data-layout] .nav-header,
[data-header-position] .nav-header,
[data-sidebar-position] .nav-header {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 50%, #B22222 100%) !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 32px rgba(220, 20, 60, 0.4), 0 4px 16px rgba(220, 20, 60, 0.25) !important;
}

/* HAMBURGER LINES: WHITE - MAXIMUM OVERRIDE */
html body .nav-header .hamburger .line,
body .nav-header .hamburger .line,
.nav-header .hamburger .line,
.hamburger .line,
[data-sidebar-style] .nav-header .hamburger .line,
[data-layout] .nav-header .hamburger .line,
.nav-control .hamburger .line,
.hamburger.is-active .line {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

/* MAIN HEADER: WHITE BACKGROUND - MAXIMUM OVERRIDE */
html body #main-wrapper .header,
body .header,
.header,
[data-headerbg] .header,
[data-header-position] .header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 50%, rgba(255, 255, 255, 0.98) 100%) !important;
    border: 2px solid #DC143C !important;
}

/* HEADER TEXT: RED COLOR - MAXIMUM OVERRIDE */
html body .header .dashboard_bar,
body .header .dashboard_bar,
.header .dashboard_bar,
.dashboard_bar,
[data-headerbg="color_8"] .header .dashboard_bar,
[data-headerbg="color_8"] .dashboard_bar {
    color: #DC143C !important;
    font-weight: 700 !important;
}

html body .header .header-info span,
html body .header .header-info small,
body .header .header-info span,
body .header .header-info small,
.header .header-info span,
.header .header-info small,
.header-info span,
.header-info small,
[data-headerbg="color_8"] .header .header-info span,
[data-headerbg="color_8"] .header .header-info small,
[data-headerbg="color_8"] .header-info span,
[data-headerbg="color_8"] .header-info small {
    color: #DC143C !important;
    font-weight: 600 !important;
}

/* Header profile link styling */
html body .header .nav-link,
.header .nav-link,
.header-profile .nav-link {
    color: #DC143C !important;
}

/* Profile image border */
html body .header .header-profile img,
.header .header-profile img,
.header-profile img {
    border: 2px solid #DC143C !important;
    border-radius: 50% !important;
}

/* ===========================
   CRITICAL FIX: SELECT EVENT DROPDOWN TEXT
   Force all text to be fully visible
   =========================== */

/* Fix card title text - ensure no letter is hidden */
.card-header h4.card-title,
.card .card-header h4,
.card-header .card-title,
h4.card-title {
    padding-left: 0 !important;
    margin-left: 0 !important;
    text-indent: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    -webkit-clip-path: none !important;
    clip-path: none !important;
}

/* NUCLEAR FIX for nice-select dropdown */
.nice-select,
div.nice-select,
span.nice-select,
.form-control.nice-select {
    padding-left: 15px !important;
    text-indent: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    -webkit-clip-path: none !important;
    clip-path: none !important;
}

.nice-select .current,
.nice-select span.current,
div.nice-select .current,
div.nice-select span.current {
    padding-left: 0 !important;
    margin-left: 0 !important;
    text-indent: 0 !important;
    transform: none !important;
    -webkit-transform: none !important;
    position: static !important;
    left: auto !important;
    clip: auto !important;
    -webkit-clip-path: none !important;
    clip-path: none !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: inherit !important;
}

/* Remove any ::before that might cover text */
.nice-select::before,
.nice-select .current::before,
.card-header::before,
.card-header h4::before,
.card-title::before {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Ensure dropdown options show full text */
.nice-select .list .option,
.nice-select .option {
    padding-left: 15px !important;
    text-indent: 0 !important;
    overflow: visible !important;
    visibility: visible !important;
}

/* Fix for select inside cards */
.card .card-body .nice-select,
.card-body .nice-select,
.card .nice-select {
    padding-left: 15px !important;
    overflow: visible !important;
}

.card .card-body .nice-select .current,
.card-body .nice-select .current {
    padding-left: 0 !important;
    margin-left: 0 !important;
    text-indent: 0 !important;
}

/* ===========================
   FIX: SELECT DROPDOWN TEXT VISIBILITY
   Ensure all select text is visible
   =========================== */

/* Standard HTML Select elements - force dark text */
select.form-control,
.form-control select,
.card-body select.form-control,
.card select.form-control {
    color: #2c3e50 !important;
    background-color: #ffffff !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    appearance: menulist !important;
}

/* Select options text visibility */
select.form-control option,
.form-control select option,
.card-body select.form-control option,
select option {
    color: #2c3e50 !important;
    background-color: #ffffff !important;
}

/* Ensure select text is not white on white */
select.form-control:not(.nice-select),
.card-body select:not(.nice-select) {
    color: #333333 !important;
}

/* ===========================
   FIX: SELECT DROPDOWN TEXT VISIBILITY - COMPREHENSIVE FIX
   Ensure Event Category and Event Type dropdowns show text clearly
   =========================== */

/* ALL Select elements inside forms - force visible dark text */
form select.form-control,
.card-body form select,
.card-body select.form-control,
select.form-control,
select[name="category_id"],
select[name="event_type"],
#event_type,
#edit_event_type {
    color: #2c3e50 !important;
    background-color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 12px 15px !important;
    height: auto !important;
    min-height: 45px !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    appearance: menulist !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Select option text - ensure visible */
form select.form-control option,
.card-body form select option,
.card-body select.form-control option,
select.form-control option,
select[name="category_id"] option,
select[name="event_type"] option,
#event_type option,
#edit_event_type option {
    color: #2c3e50 !important;
    background-color: #ffffff !important;
    padding: 10px 15px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

/* Selected option styling */
select.form-control option:checked,
select.form-control option:selected {
    background-color: #DC143C !important;
    color: #ffffff !important;
}

/* Select focus state */
form select.form-control:focus,
select.form-control:focus,
select[name="category_id"]:focus,
select[name="event_type"]:focus {
    border-color: #DC143C !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 20, 60, 0.25) !important;
    outline: none !important;
}

/* Labels for form fields - ensure visible */
.form-group label,
.card-body .form-group label,
form .form-group label {
    color: #2c3e50 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    margin-bottom: 8px !important;
    display: block !important;
}
