/* Custom styles for professional layout */

/* User Context Selector */
#kt_header_user_context .dropdown-toggle {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#kt_header_user_context .dropdown-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* User Profile Section */
.app-navbar-item .btn-light-primary {
    border-radius: 8px;
    font-weight: 500;
}

/* Sidebar Logo */
.app-sidebar-logo {
    background: linear-gradient(135deg, #009EF7 0%, #0095E8 100%);
    box-shadow: 0 2px 10px rgba(0, 158, 247, 0.3);
}

/* Menu Items */
.menu-link {
    border-radius: 8px;
    margin: 2px 0;
    transition: all 0.3s ease;
}

.menu-link:hover {
    background-color: #F1FAFF;
    transform: translateX(2px);
}

.menu-link.active {
    background-color: #E1F0FF;
    color: #009EF7 !important;
    font-weight: 600;
}

.menu-link.active .menu-icon i {
    color: #009EF7 !important;
}

/* Breadcrumb */
.breadcrumb-item.text-muted a {
    color: #7E8299;
    font-weight: 500;
}

.breadcrumb-item.text-muted a:hover {
    color: #009EF7;
}

/* Context Badges */
.badge-light-primary {
    background-color: #F1FAFF;
    color: #009EF7;
    border: 1px solid #E1F0FF;
}

.badge-light-success {
    background-color: #E8FFF3;
    color: #50CD89;
    border: 1px solid #E1FFE8;
}

/* Dropdown Menu */
.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #EFF2F5;
}

.dropdown-item {
    border-radius: 6px;
    margin: 2px 8px;
    padding: 8px 12px;
}

.dropdown-item:hover {
    background-color: #F1FAFF;
}

.dropdown-item.active {
    background-color: #E1F0FF;
    color: #009EF7;
}

/* Page Title */
.page-heading {
    color: #181C32;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .app-navbar {
        flex-wrap: wrap;
    }
    
    #kt_header_user_context {
        order: 2;
        width: 100%;
        margin-top: 10px;
    }
    
    #kt_header_user_context .dropdown {
        width: 100%;
    }
    
    #kt_header_user_context .dropdown-toggle {
        width: 100%;
        text-align: left;
    }
}

/* Animation for dropdown */
.dropdown-menu {
    animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay.show {
    display: flex;
}

/* Status indicator */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-indicator.active {
    background-color: #50CD89;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(80, 205, 137, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(80, 205, 137, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(80, 205, 137, 0);
    }
}

/* Professional table styling */
.table-professional {
    border: 1px solid #EFF2F5;
    border-radius: 8px;
    overflow: hidden;
    background-color: #FFFFFF;
}

.table-professional thead th {
    background-color: #F9FAFB;
    border-bottom: 1px solid #EFF2F5 !important;
    color: #5E6278;
    font-weight: 600;
}

.table-professional tbody td,
.table-professional tbody th,
.table-professional thead th {
    border-color: #EFF2F5 !important;
}

.table-professional tbody tr.table-primary > td {
    background-color: #E1F0FF;
    border-top: 1px solid #D6E6FF;
}

.table-professional tbody tr.table-info > td {
    background-color: #F1FAFF;
    border-top: 1px solid #E5F6FF;
}

.table-professional tbody tr.table-light > td {
    background-color: #FFFFFF;
}

.table-professional tbody tr:hover > td {
    background-color: #FAFBFC;
}
