/* =================================================================
   🎄 CHRISTMAS THEME - MINIMAL & SAFE
   Nur visuelle Änderungen, Layout bleibt intakt!
   ================================================================= */

/* ========================================
   NAVBAR - 🎄 Christmas Rot→Grün Gradient
   ======================================== */
html body.sidebar-dark .main-wrapper .navbar,
html body .main-wrapper .navbar,
body.sidebar-dark .main-wrapper .navbar,
body .main-wrapper .navbar,
.main-wrapper .navbar,
.navbar-default,
.horizontal-menu,
nav.navbar,
.page-wrapper .navbar,
body .navbar,
.navbar {
    background: linear-gradient(90deg, #c41e3a 0%, #165b33 100%) !important;
    background-image: linear-gradient(90deg, #c41e3a 0%, #165b33 100%) !important;
    background-color: #c41e3a !important;
    border-bottom: 3px solid #ffd700 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
}

.navbar-brand,
.navbar-nav .nav-link {
    color: #fff !important;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* ========================================
   SIDEBAR - 🎄 Christmas Gradient (Rot → Grün)
   ======================================== */
body.sidebar-dark .sidebar {
    background: linear-gradient(180deg, #c41e3a 0%, #165b33 100%) !important;
    border-right: 3px solid #ffd700 !important;
}

/* Sidebar Body - REMOVE ALL BACKGROUNDS damit Gradient durchscheint! */
body.sidebar-dark .sidebar .sidebar-body,
.sidebar .sidebar-body,
.sidebar-body,
.sidebar .ps {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Sidebar Header - TRANSPARENT */
body.sidebar-dark .sidebar .sidebar-header,
.sidebar .sidebar-header {
    border-bottom: 3px solid #ffd700 !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Sidebar Menu Categories */
.sidebar .nav-item-category,
.sidebar .nav-category {
    color: #ffd700 !important;
    font-weight: 700 !important;
}

/* Sidebar Menu Items */
.sidebar .nav-item .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.sidebar .nav-item .nav-link:hover {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.3) 0%, rgba(22, 91, 51, 0.3) 100%) !important;
    color: #fff !important;
    border-left: 3px solid #ffd700;
}

.sidebar .nav-item .nav-link.active {
    background: linear-gradient(135deg, #c41e3a 0%, #165b33 100%) !important;
    color: #fff !important;
    border-left: 3px solid #ffd700;
}

/* Sidebar Icons */
.sidebar .nav-item .nav-link i,
.sidebar .nav-item .nav-link svg,
.sidebar .nav-item .nav-link .link-icon {
    color: #ffd700 !important;
}

/* ========================================
   BUTTONS - Weihnachtsfarben
   ======================================== */
.btn-primary {
    background: linear-gradient(135deg, #c41e3a 0%, #a01729 100%) !important;
    border-color: #c41e3a !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a01729 0%, #801221 100%) !important;
}

.btn-success {
    background: linear-gradient(135deg, #165b33 0%, #0f4525 100%) !important;
    border-color: #165b33 !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, #0f4525 0%, #0a311a 100%) !important;
}

/* ========================================
   CARDS - Festlicher Look
   ======================================== */
.card {
    border: 1px solid rgba(196, 30, 58, 0.1);
}

.card-header {
    background: linear-gradient(135deg, #c41e3a10 0%, #165b3310 100%);
    border-bottom: 2px solid #c41e3a;
}

/* ========================================
   BADGES - Weihnachts-Stil
   ======================================== */
.badge-success {
    background: #165b33 !important;
}

.badge-danger {
    background: #c41e3a !important;
}

.badge-warning {
    background: #ffd700 !important;
    color: #000 !important;
}

/* ========================================
   LINKS - Weihnachtsrot
   ======================================== */
a {
    color: #c41e3a;
}

a:hover {
    color: #a01729;
}

/* ========================================
   DROPDOWN MENUS - Fix für Profil-Dropdown
   ======================================== */
.dropdown-menu {
    background: #ffffff !important;
}

.dropdown-menu .nav-link {
    color: #1a1a2e !important;
}

.dropdown-menu .nav-link:hover {
    background: rgba(196, 30, 58, 0.1) !important;
    color: #c41e3a !important;
}

/* ========================================
   TABLES
   ======================================== */
.table thead th {
    background: linear-gradient(135deg, #c41e3a10 0%, #165b3310 100%);
    border-bottom: 2px solid #c41e3a;
}

/* ========================================
   FORMS - Weihnachts-Fokus
   ======================================== */
.form-control:focus {
    border-color: #c41e3a;
    box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.25);
}

/* ========================================
   SCHNEE-ANIMATION Container
   ======================================== */
#snowflakes-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: #fff;
    font-size: 1em;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: fall linear infinite;
    opacity: 0.8;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* ========================================
   CHRISTMAS BANNER (Dashboard)
   ======================================== */
.christmas-banner {
    background: linear-gradient(135deg, #c41e3a 0%, #165b33 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.christmas-banner h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
}

.christmas-banner p {
    margin: 10px 0 0 0;
    font-size: 1.1rem;
}

/* ========================================
   🎄 Größerer Weihnachtsbaum im Sidebar (scrollt mit!)
   ======================================== */
/* Untere Ebene (größer!) */
.sidebar::before {
    content: '';
    position: absolute;
    bottom: 40px;
    left: 70px;
    width: 0;
    height: 0;
    border-left: 65px solid transparent;
    border-right: 65px solid transparent;
    border-bottom: 140px solid rgba(34, 139, 34, 0.15);
    z-index: 0;
    pointer-events: none;
}

/* Mittlere Ebene (größer!) */
.sidebar::after {
    content: '';
    position: absolute;
    bottom: 130px;
    left: 80px;
    width: 0;
    height: 0;
    border-left: 55px solid transparent;
    border-right: 55px solid transparent;
    border-bottom: 120px solid rgba(34, 139, 34, 0.18);
    z-index: 0;
    pointer-events: none;
}

/* Obere Ebene (über .sidebar-body) */
.sidebar .sidebar-body::before {
    content: '';
    position: absolute;
    bottom: 230px;
    left: 90px;
    width: 0;
    height: 0;
    border-left: 45px solid transparent;
    border-right: 45px solid transparent;
    border-bottom: 100px solid rgba(34, 139, 34, 0.2);
    z-index: 0;
    pointer-events: none;
}

/* Baumstamm */
.sidebar .sidebar-body::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 105px;
    width: 30px;
    height: 50px;
    background: rgba(101, 67, 33, 0.35);
    border-radius: 4px;
    z-index: 0;
    pointer-events: none;
}

/* Goldener Stern (scrollt mit!) */
.sidebar .nav:first-of-type::before {
    content: '⭐';
    position: absolute;
    bottom: 320px;
    left: 127px;
    font-size: 30px;
    z-index: 1;
    opacity: 0.5;
    animation: starTwinkle 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* ========================================
   Debug Badge - Auskommentiert für Production
   Aktiviere bei Bedarf für Debugging
   ======================================== */
/*
body::after {
    content: '🎄 Christmas Theme Active';
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: linear-gradient(90deg, #c41e3a 0%, #165b33 100%);
    color: white;
    padding: 10px;
    border-radius: 5px;
    z-index: 99999;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 1px 1px 2px black;
}
*/

/* TEST: Navbar sollte definitiv ROT sein! */
.navbar * {
    border: none !important;
}

.navbar {
    /* Extra aggressive - sollte DEFINITIV funktionieren */
    background-image: linear-gradient(to right, #c41e3a 0%, #165b33 100%) !important;
    background-color: #c41e3a !important;
}
