/* PLACE YOU CUSTOM STYLES IN THIS FILE */

/* Hide elements until Alpine.js loads */
[x-cloak] { display: none !important; }

/* Sticky Footer Layout */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Override theme's overflow:hidden that clips content */
.nk-main {
    overflow: visible !important;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    margin-bottom: 50px;
}

/* Push footer to bottom */
.nk-footer {
    flex-shrink: 0;
    position: relative !important;
    margin-top: auto;
}

/* Hide footer corner image - causes overlap issues */
.nk-footer-top-corner {
    display: none;
}

/* Fix parallax header in flex layout - ensure proper width for jarallax */
.nk-header-title-parallax {
    flex-shrink: 0;
    width: 100%;
}
.nk-header-title-parallax > .bg-image {
    width: 100%;
}
/* Override jarallax inline styles to ensure image covers full viewport */
.nk-header-title-parallax .jarallax-img {
    min-width: 100vw !important;
    min-height: 100vh !important;
    width: auto !important;
    height: auto !important;
}

/* Fix navigation dropdown gap - reduce distance between menu item and dropdown */
.nk-navbar .nk-nav > li.nk-drop-item > .dropdown {
    margin-top: 0;
    padding-top: 10px;
}
.nk-navbar .nk-nav > li.nk-drop-item:hover > .dropdown {
    top: 100%;
}


/* Remove default bullet points from check lists - we use icons instead */
.nk-list-check {
    list-style: none;
    padding-left: 0;
}
.nk-list-check li {
    padding-left: 0;
}

/* Notification Bell Styles */
/* Ensure notification badges are not cut off by parent overflow */
.nk-navbar .nk-nav > li {
    overflow: visible !important;
}
.nk-navbar .nk-nav > li > a {
    overflow: visible !important;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: 1px;
    background: #dd163b;
    color: #fff;
    font-size: 9px;
    font-weight: bold;
    min-width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

.notification-dropdown {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
}

.notification-dropdown .notification-item.unread {
    background: rgba(221, 22, 59, 0.1);
}

.notification-dropdown .notification-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.type-alert {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.notification-icon.type-info {
    background: rgba(23, 162, 184, 0.2);
    color: #17a2b8;
}

.notification-icon.type-default {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
}

.notification-icon.type-success {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

/* Message dropdown styles */
.message-dropdown {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
}

.message-dropdown .message-item.unread {
    background: rgba(221, 22, 59, 0.1);
}

.message-dropdown .message-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Fix dropdowns on mobile/tablet - hide complex dropdowns below lg breakpoint */
@media (max-width: 991.98px) {
    .nk-nav .nk-drop-item .message-dropdown,
    .nk-nav .nk-drop-item .notification-dropdown {
        display: none !important;
    }

    /* Fix mobile sidebar navigation flashing/flickering */
    .nk-navbar-side .nk-nav li {
        position: relative;
    }

    .nk-navbar-side .nk-nav li a {
        display: block;
        padding: 12px 20px;
        position: relative;
        z-index: 10;
    }

    .nk-navbar-side .nk-nav .dropdown {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
        transform: none !important;
        pointer-events: auto !important;
        background: rgba(0, 0, 0, 0.3);
        margin: 0;
        padding: 0;
    }

    .nk-navbar-side .nk-nav .nk-drop-item.open > .dropdown,
    .nk-navbar-side .nk-nav .nk-drop-item.active > .dropdown {
        display: block;
    }

    .nk-navbar-side .nk-nav .dropdown li a {
        padding: 10px 20px 10px 35px;
    }

    /* Disable hover effects on mobile - use click/tap instead */
    .nk-navbar-side .nk-nav li:hover > .dropdown {
        display: none;
    }

    .nk-navbar-side .nk-nav .nk-drop-item.open:hover > .dropdown {
        display: block;
    }
}
