/*------------------------------------------------*/
/* Navbar Styling */
.navbar {
    background-color: #1B1534 !important;
    color: white !important;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-toggler {
    border: none;
}

    .navbar-toggler:focus {
        box-shadow: none;
    }

.navbar-nav .nav-item {
    border-radius: 5px;
    margin: 0 5px;
}

.navbar-nav .nav-link {
    color: #ffffff;
    font-weight: 500;
    padding: 10px 15px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        background-color: #3e2f7d;
        color: #00bcd4;
    }

.navbar-dark .navbar-nav .nav-link {
    color: rgb(255, 255, 255) !important;
}

.navbar-dark .navbar-text {
    color: rgb(255, 255, 255) !important;
}

/* Logo Styling */
.logo {
    width: 8rem;
    height: 40px;
    margin-left: 1rem;
    margin-right: 15px;
}

/* Dropdown Menu */
.dropdown-menu {
    background-color: #343a40;
    border: none;
}

.dropdown-item {
    color: #ffffff;
}

    .dropdown-item:hover {
        background-color: #495057;
        color: #00bcd4;
    }

/* User info label on the right */
.user-info {
    color: white;
    font-size: 1rem;
    font-weight: 500;
}

/* AlertifyJS Styling */
.ajs-content {
    color: black !important;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.ajs-buttons {
    padding: 5px;
}

/* Table Styling */
.table > thead {
    vertical-align: middle;
    background: linear-gradient(74deg, rgba(2,0,36,1) 0%, rgba(62,34,94,1) 66%);
    color: white;
}

    .table > thead > tr > th:first-child {
        border-top-left-radius: 5px;
    }

    .table > thead > tr > th:last-child {
        border-top-right-radius: 5px;
    }

.dataTables_filter {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    border-radius: 20px !important;
}

.btn-secondary {
    color: var(--bs-white);
    background-color: #009ba4;
    border-color: #009ba4;
    font-weight: bold !important;
}

    .btn-secondary:hover,
    .btn-check:focus + .btn-secondary,
    .btn-secondary:focus {
        color: #fff;
        background-color: #009ba4;
        border-color: #009ba4;
        box-shadow: 0 0 0 0.25rem #009ba4;
    }

/* Footer */
.footer {
    bottom: 0;
    position: fixed;
    width: 100%;
    background-color: #1B1534;
    padding: 5px;
    color: white !important;
    z-index: 999;
    font-size: small;
}

/* Profile Image */
.profile {
    background-size: cover;
    height: 10rem;
    padding-top: 80px;
    width: 10rem;
    border-radius: 50%;
    border: inset;
}

/* 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);
    }
    /*------------------------------------------------*/
