/**
 * Professional Top Bar - Central Government Website Style
 * Best-in-Class Government Design
 */

/* ============================================
   TOP BAR - PROFESSIONAL GOVERNMENT STYLE
   ============================================ */
.top-bar {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    background-color: #ffffff !important;
    border-bottom: 2px solid #e5e7eb !important;
    padding: 0.75rem 0 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 999;
}

.top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #003d82 0%, #ff6600 100%);
}

/* ============================================
   GOVERNMENT EMBLEM - PROFESSIONAL
   ============================================ */
.government-emblem {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.emblem-svg {
    width: 55px !important;
    height: 55px !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.emblem-svg:hover {
    transform: scale(1.05);
}

.government-emblem-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.government-emblem-text .gov-title {
    color: #003d82 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    line-height: 1.3;
    letter-spacing: 0.3px;
    margin: 0;
    font-family: 'Ek Mukta', sans-serif !important;
}

.government-emblem-text .gov-subtitle {
    color: #666666 !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    line-height: 1.4;
    margin: 0;
    font-family: 'Ek Mukta', sans-serif !important;
}

/* ============================================
   SEARCH BAR - PROFESSIONAL
   ============================================ */
.top-bar-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    max-width: 400px;
    margin: 0 auto;
}

.top-bar-search form {
    display: flex;
    width: 100%;
    gap: 0.5rem;
}

.top-bar-search .form-control {
    flex: 1;
    border: 2px solid #e5e7eb !important;
    border-radius: 6px !important;
    padding: 0.625rem 1rem !important;
    font-size: 14px !important;
    font-family: 'Ek Mukta', sans-serif !important;
    transition: all 0.3s ease;
    background: #ffffff !important;
    color: #333333 !important;
}

.top-bar-search .form-control:focus {
    border-color: #003d82 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 61, 130, 0.1) !important;
    background: #ffffff !important;
}

.top-bar-search .form-control::placeholder {
    color: #999999 !important;
    font-family: 'Ek Mukta', sans-serif !important;
}

.top-bar-search .btn-search {
    background: linear-gradient(135deg, #003d82 0%, #0052a3 100%) !important;
    background-color: #003d82 !important;
    color: #ffffff !important;
    border: 2px solid #003d82 !important;
    border-radius: 6px !important;
    padding: 0.625rem 1rem !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    box-shadow: 0 2px 4px rgba(0, 61, 130, 0.2);
}

.top-bar-search .btn-search:hover {
    background: linear-gradient(135deg, #0052a3 0%, #0066cc 100%) !important;
    background-color: #0052a3 !important;
    border-color: #0052a3 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 61, 130, 0.3);
}

.top-bar-search .btn-search:active {
    transform: translateY(0);
}

.top-bar-search .btn-search i {
    font-size: 16px;
}

/* ============================================
   ACCESSIBILITY CONTROLS - PROFESSIONAL
   ============================================ */
.top-bar-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.top-bar-controls .btn {
    background: #ffffff !important;
    border: 2px solid #e5e7eb !important;
    color: #666666 !important;
    padding: 0.625rem 0.875rem !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    font-family: 'Ek Mukta', sans-serif !important;
}

.top-bar-controls .btn:hover {
    background: #f8f9fa !important;
    border-color: #003d82 !important;
    color: #003d82 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 61, 130, 0.1);
}

.top-bar-controls .btn:focus {
    outline: 2px solid #003d82 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 3px rgba(0, 61, 130, 0.1) !important;
}

.top-bar-controls .btn i {
    font-size: 16px;
}

/* ============================================
   RESPONSIVE - PROFESSIONAL
   ============================================ */
@media (max-width: 992px) {
    .top-bar .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .top-bar-search {
        max-width: 100%;
        width: 100%;
    }
    
    .top-bar-controls {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .top-bar {
        padding: 0.625rem 0 !important;
    }
    
    .government-emblem {
        gap: 0.75rem;
    }
    
    .emblem-svg {
        width: 45px !important;
        height: 45px !important;
    }
    
    .government-emblem-text .gov-title {
        font-size: 14px !important;
    }
    
    .government-emblem-text .gov-subtitle {
        font-size: 12px !important;
    }
    
    .top-bar-search .form-control {
        font-size: 13px !important;
        padding: 0.5rem 0.875rem !important;
    }
    
    .top-bar-controls .btn {
        padding: 0.5rem 0.75rem !important;
        font-size: 13px !important;
        min-width: 36px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.top-bar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

@media (max-width: 992px) {
    .top-bar-row {
        flex-direction: column;
        align-items: stretch;
    }
}

