html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.logo {
    width: 8rem;
    height: 40px;
    margin-left: 1rem;
    margin-right: 15px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.sidebar-header {
    background-color: #1B1534 !important;
    color: white !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Sidebar base */
.sidebar {
    width: 200px; /* ancho fijo en desktop */
    min-height: 100vh; /* ocupa alto total */
    position: sticky; /* se mantiene visible al hacer scroll */
    transition: width 0.3 transition: width 0.3s ease;
    top: 0;
    z-index: 1020; /* por encima del contenido */
}

    .sidebar.collapsed:hover {
        width: 200px;
    }

/* En pantallas pequeñas, el sidebar se colapsa y ocupa el ancho completo al abrir */
@media (max-width: 767.98px) {
    .sidebar {
        width: 100%;
        min-height: auto;
        position: static;
    }
}

/* Estilos de navegación */
.sidebar .nav-link {
    color: #333;
    border-radius: .375rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
}

    .sidebar .nav-link:hover {
        background-color: #f5f5f5;
    }

    .sidebar .nav-link.active {
        color: #4e00bf;
        font-weight: 600;
    }

}

/* Separador de sección */
.sidebar .small {
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Utility */
.bg-purple {
    color: #b04feb;
}

/* Energy Loader */
.energy-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(245, 240, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.energy-icon {
    animation: spin 1s linear infinite;
    filter: drop-shadow(0 0 16px #a259e6);
}

/* Common button styling */
button.editor-edit,
button.editor-delete {
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    color: white;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-right: 6px; /* spacing between buttons */
}

/* Edit button styling */
button.editor-edit {
    background-color: #4CAF50; /* Green */
}

    button.editor-edit:hover {
        background-color: #45a049;
        transform: scale(1.05);
    }

    button.editor-edit:active {
        transform: scale(0.98);
    }

/* Delete button styling */
button.editor-delete {
    background-color: #f44336; /* Red */
}

    button.editor-delete:hover {
        background-color: #d32f2f;
        transform: scale(1.05);
    }

    button.editor-delete:active {
        transform: scale(0.98);
    }

    /* Optional: icon spacing */
    button.editor-edit i,
    button.editor-delete i {
        margin-right: 4px;
    }

.modal-backdrop.fade.show {
    z-index: -10;
}

.hide-column {
    display: none;
}

input:required,
select:required,
textarea:required {
    border: 2px solid #8000804d;
    background-color: #f3e5f5;
}

.custom-purple {
    background-color: #1B1534 !important;
    color: white !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-tag {
    animation: fadeIn 0.5s ease-out;
    transition: opacity 0.5s ease-out;
}

table.dataTable td,
table.dataTable th {
    padding: 4px 6px !important;
    font-size: 12px !important;
}

.dataTables_wrapper {
    overflow-x: auto !important;
}

table.dataTable td {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

table.table.dataTable.table-striped > tbody > tr:nth-of-type(2n+1).selected > * {
    box-shadow: inset 0 0 0 9999px rgba(87, 7, 86, 0.95) !important;
    box-shadow: inset 0 0 0 9999px rgba(87, 7, 86, 0.95) !important;
}

table.table.dataTable > tbody > tr.selected > * {
    box-shadow: inset 0 0 0 9999px rgb(119, 7, 102) !important;
    box-shadow: inset 0 0 0 9999px rgb(119, 7, 102) !important;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
    /*------------------------------------------------*/
