/**
 * =============================================================================
 * BANCHY BLOODBANK - PRESENTATION BAR
 * =============================================================================
 * Barra de presentación fija reutilizable
 * =============================================================================
 */

body.has-presentation-layout {
    padding: 0 !important;
}

body.has-presentation-bar {
    padding-top: 64px;
}

/* Barra de Presentación Fija - Estilo Bancolombia */
.presentation-bar-bancolombia {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    z-index: 1100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    height: 64px;
}

.presentation-bar-container {
    width: 100%;
    margin: 0;
    padding: 0 0.75rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: space-between;
}

/* 1. Icono Hamburguesa */
.presentation-bar-hamburger {
    min-width: 50px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #003A7A;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    padding: 0.25rem;
    position: relative;
}

.presentation-bar-hamburger::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 58, 122, 0.05);
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.presentation-bar-hamburger:hover::before {
    opacity: 1;
}

.presentation-bar-hamburger:hover {
    color: #0056b3;
}

.presentation-bar-hamburger:active {
    transform: scale(0.98);
}

.presentation-bar-hamburger:hover .hamburger-content svg {
    transform: scale(1.05);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    position: relative;
    z-index: 1;
}

.hamburger-content svg {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-label {
    font-size: 0.6rem;
    font-weight: 500;
    color: #003A7A;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* 2. Logo de la Empresa */
.presentation-bar-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 0;
    animation: none !important;
    transform: none !important;
}

.brand-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    max-width: 180px;
    animation: none !important;
    transform: none !important;
    transition: none !important;
}

.logo-separator {
    font-size: 1.25rem;
    color: #D1D5DB;
    margin-left: 0.5rem;
    margin-right: 0.25rem;
    line-height: 1;
    font-weight: 300;
}

/* 3. Nombre de la Aplicación */
.presentation-bar-app-name {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    gap: 0.1rem;
    min-width: 0;
    flex: 0 1 auto;
}

.app-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #003A7A;
    line-height: 1.2;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.app-subtitle {
    font-size: 0.65rem;
    font-weight: 400;
    color: #6B7280;
    line-height: 1.2;
    white-space: nowrap;
}

/* Espaciador flexible */
.presentation-bar-spacer {
    flex: 1;
    min-width: 0.5rem;
}

/* Iconos */
.presentation-bar-search-container {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.presentation-bar-icon-btn {
    min-width: auto;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0 0.5rem;
    background: transparent;
    border: none;
    color: #6B7280;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.presentation-bar-icon-btn svg {
    width: 18px;
    height: 18px;
}

.presentation-bar-icon-btn:hover {
    background: #F3F4F6;
    color: #003A7A;
}

.icon-btn-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: inherit;
    white-space: nowrap;
}

.icon-separator {
    font-size: 1.1rem;
    color: #D1D5DB;
    line-height: 1;
    font-weight: 300;
}

/* Selector de Idioma */
.presentation-bar-language-selector {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.presentation-bar-language-select {
    height: 32px;
    padding: 0 0.5rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #6B7280;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.35rem center;
    background-size: 12px 8px;
    padding-right: 1.5rem;
    min-width: 80px;
}

.presentation-bar-language-select:hover {
    background-color: #F3F4F6;
    color: #003A7A;
    border-color: #E5E7EB;
}

.presentation-bar-language-select:focus {
    background-color: #F3F4F6;
    color: #003A7A;
    border-color: #003A7A;
}

.presentation-bar-language-select option {
    background: #FFFFFF;
    color: #1F2937;
    padding: 0.5rem;
}

/* 7. Nombre de la Empresa + NIT */
.presentation-bar-center-info {
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    flex-shrink: 0;
    min-width: 0;
    flex: 0 1 auto;
}

.center-info-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.1rem;
    width: 100%;
}

.center-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1F2937;
    line-height: 1.2;
    white-space: nowrap;
}

.center-nit {
    font-size: 0.65rem;
    font-weight: 400;
    color: #6B7280;
    line-height: 1.2;
    white-space: nowrap;
}

/* 8. Usuario que se loguea */
.presentation-bar-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.user-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1F2937;
    line-height: 1.2;
    white-space: nowrap;
}

/* Ajuste del main-content para compensar la barra fija */
.main-content {
    padding-top: 64px;
    position: relative;
    z-index: 1;
}

.content-wrapper {
    padding: 24px;
}

@media (max-width: 768px) {
    .presentation-bar-container {
        padding: 0 0.5rem;
        gap: 0.5rem;
        justify-content: space-between;
    }

    .presentation-bar-hamburger {
        min-width: 45px;
        height: 64px;
    }

    .hamburger-label {
        font-size: 0.55rem;
    }

    .brand-logo-img {
        height: 32px;
        max-width: 120px;
    }

    .logo-separator {
        font-size: 1rem;
        margin-left: 0.35rem;
        margin-right: 0.15rem;
    }

    .app-name {
        font-size: 0.85rem;
    }

    .app-subtitle {
        font-size: 0.6rem;
    }

    .presentation-bar-app-name {
        min-width: 0;
        flex: 0 1 auto;
    }

    .presentation-bar-center-info {
        display: none;
    }

    .user-info {
        display: none;
    }

    .user-icon {
        width: 18px;
        height: 18px;
    }

    .user-icon svg {
        width: 18px;
        height: 18px;
    }

    .presentation-bar-icon-btn {
        min-width: auto;
        width: 28px;
        height: 28px;
        padding: 0;
    }

    .presentation-bar-icon-btn svg {
        width: 16px;
        height: 16px;
    }

    .icon-btn-label {
        display: none;
    }

    .icon-separator {
        font-size: 0.9rem;
    }

    .presentation-bar-search-container {
        gap: 0.25rem;
    }

    .presentation-bar-language-select {
        min-width: 60px;
        font-size: 0.7rem;
        padding-right: 1.25rem;
        background-size: 10px 6px;
    }

    .content-wrapper {
        padding: 16px;
    }
}
