﻿/* Estilos para la barra de navegación */
.custom-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Título del lado izquierdo */
.navbar-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #495057;
    margin-right: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .navbar-title:hover {
        color: #007bff;
        text-decoration: none;
    }

/* Separador visual atractivo */
.navbar-separator {
    width: 2px;
    height: 32px;
    background: linear-gradient(180deg, transparent 0%, var(--primary) 20%, var(--primary) 50%, #007bff 80%, transparent 100%);
    margin: 0 0.75rem;
    border-radius: 2px;
    position: relative;
    opacity: 0.6;
}

    .navbar-separator::before {
        content: '';
        position: absolute;
        left: -2px;
        top: 0;
        width: 6px;
        height: 100%;
        background: linear-gradient(180deg, transparent 0%, rgba(0,123,255,0.1) 20%, rgba(111,66,193,0.1) 50%, rgba(0,123,255,0.1) 80%, transparent 100%);
        border-radius: 3px;
        animation: pulse 2s ease-in-out infinite;
    }

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

/* Contenedor de botones de navegación */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Estilos para los botones de acción */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 50%;
    color: #6c757d;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

    .action-btn:hover {
        background-color: #f8f9fa;
        color: #495057;
        transform: translateY(-1px);
    }

    .action-btn:active {
        transform: translateY(0);
    }

    /* Estilos específicos para Tabler Icons */
    .action-btn .tabler-icon {
        width: 20px;
        height: 20px;
        stroke-width: 1.2;
    }



    /* ESTILOS PARA BOTONES DESHABILITADOS */
    .action-btn:disabled,
    .action-btn.disabled,
    .dropdown-action-btn:disabled,
    .dropdown-action-btn.disabled {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
        position: relative;
    }

        /* Efecto visual para botones deshabilitados */
        /*.action-btn:disabled::before,
        .action-btn.disabled::before,
        .dropdown-action-btn:disabled::before,
        .dropdown-action-btn.disabled::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: repeating-linear-gradient( 45deg, rgba(200, 200, 200, 0.1), rgba(200, 200, 200, 0.1) 5px, rgba(240, 240, 240, 0.1) 5px, rgba(240, 240, 240, 0.1) 10px );
            border-radius: inherit;
            z-index: 1;
        }*/

        /* Asegurar que el contenido del botón esté por encima del patrón */
        .action-btn:disabled .tabler-icon,
        .action-btn.disabled .tabler-icon,
        .dropdown-action-btn:disabled .tabler-icon,
        .dropdown-action-btn.disabled .tabler-icon,
        .dropdown-action-btn:disabled span,
        .dropdown-action-btn.disabled span {
            position: relative;
            z-index: 2;
        }

        /* Eliminar efectos hover y active en botones deshabilitados */
        .action-btn:disabled:hover,
        .action-btn.disabled:hover,
        .dropdown-action-btn:disabled:hover,
        .dropdown-action-btn.disabled:hover {
            background-color: transparent;
            transform: none;
            box-shadow: none;
        }

    /* Estilo específico para botones circulares deshabilitados */
    .action-btn:disabled,
    .action-btn.disabled {
        color: #adb5bd;
        /*background-color: #f8f9fa;*/
        /*border: 1px dashed #dee2e6;*/
    }

/* Estilo específico para botones del menú desplegable deshabilitados */
.dropdown-action-btn:disabled,
.dropdown-action-btn.disabled {
    color: #adb5bd;
    /*background-color: #f8f9fa;*/
}

    /* Tooltip para botones deshabilitados */
    .action-btn:disabled::after,
    .action-btn.disabled::after,
    .dropdown-action-btn:disabled::after,
    .dropdown-action-btn.disabled::after {
        content: attr(data-disabled-reason);
        position: absolute;
        bottom: -40px;
        left: 50%;
        transform: translateX(-50%);
        background-color: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 12px;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
        z-index: 1000;
        pointer-events: none;
    }

    .action-btn:disabled:hover::after,
    .action-btn.disabled:hover::after,
    .dropdown-action-btn:disabled:hover::after,
    .dropdown-action-btn.disabled:hover::after {
        opacity: 1;
        visibility: visible;
    }




/* Botón del menú hamburguesa (solo visible en pantallas pequeñas) */
.navbar-toggler-custom {
    border: none;
    padding: 0.25rem 0.5rem;
    background: transparent;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: none;
}

    .navbar-toggler-custom:hover {
        background-color: #f8f9fa;
    }

    .navbar-toggler-custom:focus {
        box-shadow: none;
    }

    .navbar-toggler-custom .tabler-icon {
        width: 20px;
        height: 20px;
        stroke-width: 1.5;
    }

/* Menú desplegable para pantallas pequeñas */
/*.navbar-collapse-custom {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 0.5rem;
    padding: 1rem;
}

.dropdown-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dropdown-action-btn {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    border-radius: 0.5rem;
    color: #495057;
    text-align: left;
    transition: background-color 0.3s ease;
    width: 100%;
}

    .dropdown-action-btn:hover {
        background-color: #f8f9fa;
    }

    .dropdown-action-btn .tabler-icon {
        margin-right: 0.75rem;
        width: 20px;
        height: 20px;
        stroke-width: 1.5;
    }*/

/* Responsive Design */
@media (max-width: 991.98px) {
    .navbar-actions {
        display: none;
    }

    .navbar-separator {
        display: none;
    }

    .navbar-toggler-custom {
        display: inline-flex;
    }
}

@media (max-width: 767.98px) {
    .navbar-title {
        font-size: 1.1rem;
    }

    .custom-navbar {
        padding: 0.5rem;
    }
}

/* Animaciones adicionales */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-collapse-custom.show {
    animation: fadeIn 0.3s ease;
}

/* Estilos para el área del usuario (lado derecho) */
.navbar-user-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.notification-btn {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

    .user-avatar:hover {
        border-color: #007bff;
    }

/* Variante alternativa del separador (más sutil) */
.navbar-separator-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 1rem;
}

    .navbar-separator-dots::before,
    .navbar-separator-dots::after {
        content: '';
        width: 4px;
        height: 4px;
        background-color: #007bff;
        border-radius: 50%;
        opacity: 0.6;
    }

    .navbar-separator-dots::before {
        animation: dot-pulse 1.5s ease-in-out infinite;
    }

    .navbar-separator-dots::after {
        animation: dot-pulse 1.5s ease-in-out infinite 0.5s;
    }

@keyframes dot-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}




/* Animación para indicar que un botón está deshabilitado */
@keyframes disabled-pulse {
    0%, 100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.7;
    }
}


.action-btn.disabled-animated,
.dropdown-action-btn.disabled-animated {
    animation: disabled-pulse 2s infinite ease-in-out;
}

/* Variante con línea diagonal para botones deshabilitados */
.action-btn.disabled-strikethrough::before,
.dropdown-action-btn.disabled-strikethrough::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 140%;
    height: 1px;
    background-color: rgba(220, 53, 69, 0.6);
    transform: rotate(45deg);
    transform-origin: 0 0;
    z-index: 3;
}

/* Variante con icono de candado para botones deshabilitados */
.action-btn.disabled-locked::after,
.dropdown-action-btn.disabled-locked::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background-color: #f8f9fa;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    z-index: 3;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23adb5bd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px 10px;
}