.divider-text:before,
.divider-text:after {
    color: white;
    content: "";
    flex: 1;
    border-bottom: 1px solid #555;
    margin: auto 0.25rem;
    box-shadow: 0 -2px;
}


html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    height: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    height: 100%;
    margin: 0;
    margin-bottom: 60px;
}

/* Loading spinner for calculate button */
.custom-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    margin: 20px auto;
    animation: spin 1s linear infinite;
}

.custom-popup {
    padding: 2em;
}

.loading-message {
    margin-top: 1em;
    color: #666;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Swal2 Loader: Remove box, make overlay cover full page */
.swal2-no-box {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    height: auto !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.swal2-container.swal2-center {
    align-items: stretch !important;
}

.swal2-container {
    background: rgba(0, 0, 0, 0.3) !important;
    z-index: 99999 !important;
}


.navbar .nav-link {
    font-size: 16px;
    font-weight: 500;
}

.dropdown-menu .dropdown-item {
    font-size: 16px;
    margin-bottom: 2px;
}

/* Modern Header Styles - Monochrome Design */
.modern-header {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    top: 0;
    z-index: 1000;
    background: white;
}

.logo-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-group {
    gap: 2rem;
}

.brand-logo {
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: inline-block;
}

.brand-logo:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.logo-img {
    width: 200px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.logo-img:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.user-info-section {
    display: flex;
    align-items: center;
}

.user-status-cards {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.status-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: rgba(248, 249, 250, 0.98);
}

.status-card i {
    color: #495057;
    font-size: 1.1rem;
}

.status-text {
    color: #212529;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modern-nav {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
    padding: 0.75rem 0;
    border: none;
}

.modern-nav .navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.modern-nav .navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modern-nav .navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modern-nav .navbar-nav .dropdown-toggle::after {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.modern-nav .navbar-nav .dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

.modern-dropdown {
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.modern-dropdown .dropdown-item {
    padding: 0.75rem 1.5rem;
    color: #495057;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    border-radius: 8px;
    margin: 0 0.5rem;
}

.modern-dropdown .dropdown-item:hover {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    color: white;
    transform: translateX(4px);
}

.modern-dropdown .dropdown-item i {
    color: inherit;
    transition: color 0.3s ease;
}

.modern-dropdown .dropdown-divider {
    margin: 0.5rem 1rem;
    border-color: rgba(0, 0, 0, 0.1);
}

.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem;
    border-radius: 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* User Status Vertical Layout */
.user-status-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.user-status-vertical:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: rgba(248, 249, 250, 0.98);
}

.status-card-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: flex-start;
}

.status-card-row i {
    color: #495057;
    font-size: 1rem;
    min-width: 20px;
}

.status-card-row .status-text {
    color: #212529;
    font-weight: 500;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zero-logo-section {
    display: flex;
    align-items: center;
}

/* Version and ZERO Logo Group Styles */
.version-logo-group {
    gap: 1rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .logo-group {
        gap: 1rem;
    }

    .logo-img {
        width: 150px;
        height: 60px;
    }

    .user-status-vertical {
        padding: 0.75rem 1rem;
        gap: 0.25rem;
    }

    .status-card-row .status-text {
        font-size: 0.8rem;
        max-width: 120px;
    }
}

@media (max-width: 768px) {
    .logo-section .d-flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .user-info-section {
        order: 2;
    }

    .zero-logo-section {
        order: 3;
    }

    .logo-img {
        width: 120px;
        height: 50px;
    }

    .modern-nav .navbar-nav .nav-link {
        margin: 0.25rem 0;
    }

    .user-status-vertical {
        padding: 0.5rem 0.75rem;
    }

    .status-card-row .status-text {
        font-size: 0.75rem;
        max-width: 100px;
    }
}
