/* Main CSS file for Alajese Kumadan Dolacics */

/* Import existing styles */
@import url('style.css');

/* Additional base styles */
.auth-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #010101;
    background-image: linear-gradient(135deg, #000000 0%, #001129 25%, #0F0025 50%, #14080A 75%, #001129 100%);
}

.main-content {
    padding-top: 2rem;
    min-height: calc(100vh - var(--navbar-height));
}

/* Authentication forms styling */
.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 2rem 2rem 1rem;
}

.auth-card .card-body {
    padding: 2rem;
}

.auth-card .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.auth-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Form styling */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Alert styling */
.alert {
    border-radius: 0.5rem;
    border: none;
    font-weight: 500;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .auth-card {
        margin: 1rem;
        border-radius: 0.5rem;
    }
    
    .auth-card .card-header,
    .auth-card .card-body {
        padding: 1.5rem;
    }
}

/* Login hero container */
.login-hero {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    color: #fff;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-logo {
    max-width: 120px;
}
.hero-title {
    font-weight: 700;
    letter-spacing: 0.3px;
}
.hero-subtitle {
    opacity: 0.9;
}
@media (max-width: 992px) {
    .login-hero { text-align: center; min-height: auto; }
}

/* ===== NAVBAR FIXES ===== */
/* Ensure mobile hamburger icon is visible and collapsed menu scrolls */
.navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.55);
}
.navbar-dark .navbar-toggler-icon {
    background-image: var(--bs-navbar-toggler-icon-bg, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28 255, 255, 255, 0.85 %29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"));
}
.navbar .collapse.navbar-collapse {
    max-height: calc(100vh - var(--navbar-height));
    overflow-y: auto;
}

/* Hide Bootstrap caret on navbar dropdown toggles */
.navbar .dropdown-toggle::after {
    display: none !important;
}

/* Re-enable caret arrow on dropdown toggle (overrides previous hide rules) */
.navbar .dropdown-toggle::after {
    content: "" !important;
    display: inline-block !important;
}

/* Prevent any hover-to-open behavior (override any earlier rules) */
@media (pointer: fine) {
    .navbar .nav-item.dropdown:hover > .dropdown-menu:not(.show) {
        display: none !important;
    }
}

/* Inline arrow button next to label */
.navbar .dropdown-arrow {
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0 .25rem;
    line-height: 1;
}
.navbar .nav-item.dropdown.d-flex .nav-link {
    display: inline-flex;
    align-items: center;
}

/* Panel styling: clean dropdown menu */
.navbar .dropdown-menu {
    background-color: #fff;
    color: #212529;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 0.5rem 0.5rem;
    min-width: 280px;
    margin-top: 0.5rem;
    z-index: 1050; /* ensure above navbar content */
}

/* Item spacing and hover state */
.navbar .dropdown-item {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
}
.navbar .dropdown-item:hover {
    background: #f1f3f5;
}

/* Ensure the panel opens directly under its label */
.navbar .dropdown-menu.show {
    transform: none !important; /* for static placement under the toggle */
    inset: auto auto auto 0 !important; /* anchor left to the toggle */
}

/* Animate in when opened by Bootstrap's JS */
.navbar .dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
}

/* Desktop hover: show the full list like the example */
@media (min-width: 992px) {
    /* Let dropdowns escape the navbar container */
    .navbar .collapse.navbar-collapse {
        overflow: visible;
        max-height: none;
    }
    .navbar .nav-item.dropdown:hover > .dropdown-menu {
        display: block;          /* force visible on hover */
        opacity: 1;
        transform: translateY(0);
    }
    /* keep open when the cursor is inside the menu */
    .navbar .nav-item.dropdown .dropdown-menu:hover {
        display: block;
    }
}

/* Initial off-state for smoother animation on JS-open */
.navbar .dropdown-menu {
    opacity: 0;
    transform: translateY(8px);
}

/* Optional: tighter spacing for dropdown items */
.navbar .dropdown-menu .dropdown-item {
    padding: 0.5rem 1rem;
}

/* Optional: highlight on hover for clarity */
.navbar .dropdown-menu .dropdown-item:hover {
    background-color: #f1f3f5;
    color: #212529;
}
