/* PodOps Studio - Unified Header Styles - Dark Theme */

/* Dark header styling - Ultra compact */
.studio-header-dark {
    background: #1a1a2e !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    padding: 0 !important; /* No padding on navbar */
    min-height: 40px !important; /* Ultra compact height */
    max-height: 40px !important; /* Force max height */
    z-index: 9999990 !important; /* Ensure header is above ALL page content */
    position: relative;
    overflow: visible !important; /* Allow dropdowns to overflow beyond header */
}

/* Override Bootstrap's container-fluid padding - make extremely tight */
.studio-header-dark .container-fluid {
    padding: 0 12px !important; /* Only horizontal padding, NO vertical */
    min-height: 40px !important;
    max-height: 40px !important;
    display: flex;
    align-items: center;
    overflow: visible !important; /* Allow dropdowns to overflow */
}

.user-avatar-circle {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50%;
    background: linear-gradient(135deg, #6D1A86 0%, #2CC5FF 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 11px !important;
}

.navbar .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    z-index: 9999999 !important; /* Ensure dropdown is above everything */
}

/* Force dropdown menus in header to always be on top */
.studio-header-dark .dropdown-menu {
    z-index: 9999999 !important;
    position: absolute !important;
}

.studio-header-dark .dropdown-menu.show {
    z-index: 9999999 !important;
}

.dropdown-item {
    padding: 10px 16px;
    transition: all 0.2s;
    border-radius: 6px;
    margin: 2px 6px;
}

.dropdown-item.compact-item {
    padding: 6px 10px !important;
    margin: 1px 3px !important;
    border-radius: 4px;
}

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

.dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Sticky header adjustments */
.navbar.sticky-top {
    top: 0;
    z-index: 9999990 !important;
}

/* Search box styling - Dark theme */
.search-container .input-group {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.search-container .input-group-text {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
}

.search-container .form-control {
    border: none;
    background: transparent;
    color: #e4e4e7;
}

.search-container .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-container .form-control:focus {
    box-shadow: none;
    background: rgba(255, 255, 255, 0.08);
}

/* Button styling for dark theme */
.studio-header-dark .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.studio-header-dark .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Header Search Bar */
.header-search-bar {
    position: relative;
    width: 300px;
    margin-right: 12px;
}

.header-search-bar input {
    width: 100%;
    padding: 6px 12px 6px 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.05);
    color: #e4e4e7;
    transition: all 0.2s;
}

.header-search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.header-search-bar input:focus {
    outline: none;
    border-color: rgba(44, 197, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.header-search-bar i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

/* Header Action Buttons */
.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-header-record {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-header-record:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.btn-header-record i {
    font-size: 10px;
}

.btn-header-new {
    background: linear-gradient(135deg, #6D1A86, #2CC5FF);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-header-new:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(109, 26, 134, 0.3);
}

.btn-header-new i {
    font-size: 10px;
}

/* Responsive adjustments for header content */
@media (max-width: 992px) {
    .header-search-bar {
        width: 200px;
    }

    .btn-header-record span,
    .btn-header-new span {
        display: none;
    }

    .btn-header-record,
    .btn-header-new {
        padding: 6px 10px;
    }
}

@media (max-width: 768px) {
    .header-search-bar {
        display: none;
    }
}
