.required:after {
    color: #ff2605 !important;
    content: "  *" !important;
}
/* Example tweak for the Flasher container */
.fl-wrapper {
    z-index: 1009 !important;
}
.hidden {
    display: none !important;
}

hr {
    border: none !important;
    border-top: 1px dotted #6c6e71 !important; /* Bootstrap’s gray-300 */
}

/* risk assessment css */
.custom-radio .form-check-input {
    width: 1.3em;
    height: 1.3em;
    margin-top: 0.2em;
}
.custom-radio .form-check-input.option-1:checked {
    background-color: #28a745; /* Green */
    border-color: #28a745;
}
.custom-radio .form-check-input.option-2:checked {
    background-color: #ffc107; /* Yellow */
    border-color: #ffc107;
}
.custom-radio .form-check-input.option-3:checked {
    background-color: #dc3545; /* Red */
    border-color: #dc3545;
}
.custom-radio .form-check-label {
    margin-left: 0.4em;
    font-weight: 500;
}
.border-dashed {
    border-top: 1px dashed red;
}
.clickable-row {
    cursor: pointer;
}
.clickable-row:hover {
    background-color: #f9f9f9;
}

/* assessment-total-result */
.modern-table {
    border: 1px solid #255196;
    border-radius: 8px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.modern-table th,
.modern-table td {
    border: 1px solid #d1d7e0;
    padding: 15px;
}

.modern-table thead th {
    background: #255196;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
}

.modern-table thead .header-sub {
    background: #4da6ff;
    color: #fff;
    font-weight: 500;
    text-align: center;
}

.modern-table tbody tr:hover {
    background: #f1f5fb;
}

.modern-table tbody td b {
    color: #255196;
}

/* login */
.auth-page-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.auth-page-wrapper::before {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    background: #8dc63f;
}

.auth-page-wrapper::after {
    width: 350px;
    height: 350px;
    bottom: -120px;
    right: -120px;
    background: #255196;
}

/* Login box */
.auth-box {
    position: relative;
    z-index: 2;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(141, 198, 63, 0.3),
        rgba(37, 81, 150, 0.2) 70%
    );
    backdrop-filter: blur(12px);
    padding: 25px;
    border-radius: 25px;
    box-shadow: inset 0 8px 25px rgba(255, 255, 255, 0.2),
        0 8px 25px rgba(0, 0, 0, 0.3);
    color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
@keyframes zoomFade {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.zoomFade {
    animation: zoomFade 1.2s ease-out forwards;
}

/*

SIDE BAR
<!-- ========== App Menu ========== -->
<style>
    /* Sidebar Container */
.app-menu {
    background: linear-gradient(
        180deg,
        #1e3c72,
        #2a5298
    ); /* Deep blue gradient */
    color: #fff;
    height: 100vh;
    width: 250px;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    overflow-y: hidden; /* enables vertical scrolling */
    overflow-x: hidden; /* prevents horizontal scrollbar */
}

/* Logo Box */
.navbar-brand-box {
    text-align: center;
    padding: 30px;
    border-bottom: 1px solid white;
}
/* Override size for logo */
.navbar-brand-box img {
    max-width: 100%;
    height: auto;
}
/* Menu Title */
.menu-title span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: #b0bec5;
    padding: 10px 20px;
    display: block;
}

/* Sidebar main links */
.navbar-nav .nav-item .nav-link {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    color: #eceff1;
    border-radius: 8px;
    margin: 4px 10px;
    transition: all 0.25s ease-in-out;
    white-space: nowrap;
}

/* Icon spacing */
.navbar-nav .nav-item .nav-link i {
    margin-right: 10px;
    font-size: 18px;
    flex-shrink: 0;
}

/* Hover & Active */
.navbar-nav .nav-item .nav-link:hover,
.navbar-nav .nav-item .nav-link.active {
    background: #42a5f5;
    color: #fff;
    box-shadow: 0 2px 6px rgba(66, 165, 245, 0.4);
}
.navbar-nav .nav-item .nav-link:hover i,
.navbar-nav .nav-item .nav-link.active i {
    color: #fff;
}

/* Submenu wrapper */
.menu-dropdown {
    padding-left: 15px;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    margin-left: 10px;
}

/* Submenu items */
.menu-dropdown .nav-link {
    font-size: 14px;
    color: #cfd8dc;
    padding: 8px 14px;
    border-radius: 6px;
    margin: 2px 0;
    display: block;
}

.menu-dropdown .nav-link:hover,
.menu-dropdown .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Dropdown */
.menu-dropdown {
    margin: 5px 0 5px 15px;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    padding-left: 10px;
}
.menu-dropdown .nav-link {
    font-size: 14px;
    color: #cfd8dc;
    padding: 8px 10px;
}
.menu-dropdown .nav-link:hover {
    color: #fff;
}

/* Badge Styling */
.badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 7px;
}

/*  Footer */
.footer-modern {
    position: absolute;
    bottom: 0;
    left: 250px; /* align with sidebar */
    right: 0;
    background: linear-gradient(90deg, #2a5caa, #1e3c72);
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    letter-spacing: 0.3px;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 10px 20px;
    text-align: center;
}

.footer-modern .footer-text,
.footer-modern .footer-brand {
    transition: all 0.3s ease-in-out;
    display: inline-block;
}

.footer-modern .footer-text:hover,
.footer-modern .footer-brand:hover {
    color: #d1e4ff;
    transform: translateY(-2px);
}

/* Smooth Divider */
.footer-modern::before {
    content: "";
    position: absolute;
    top: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #1e3c72, #2a5caa);
    animation: gradient-move 4s infinite alternate;
}

@keyframes gradient-move {
    0% {
        background-position: left;
    }
    100% {
        background-position: right;
    }
}

.custom-accordion-btn {
    background: linear-gradient(135deg, #2a5caa, #1e3c72);
    color: #fff !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 12px 20px;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease-in-out;
}

/* Base button */
.btn-attachment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 14px;
    background: transparent;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.btn-attachment:hover {
    background: transparent;
    opacity: 0.9;
    /* subtle hover effect */
}

/* Type variants with faint border */
.btn-attachment.excel {
    border-color: rgba(25, 135, 84, 0.4);
    /* faint green */
    color: #198754;
}

.btn-attachment.excel i {
    color: #198754;
}

.btn-attachment.image {
    border-color: rgba(13, 202, 240, 0.4);
    /* faint cyan */
    color: #0dcaf0;
}

.btn-attachment.image i {
    color: #0dcaf0;
}

.btn-attachment.pdf {
    border-color: rgba(220, 53, 69, 0.4);
    /* faint red */
    color: #dc3545;
}

.btn-attachment.pdf i {
    color: #dc3545;
}

.btn-attachment.word {
    border-color: rgba(13, 110, 253, 0.4);
    /* faint blue */
    color: #0d6efd;
}

.btn-attachment.word i {
    color: #0d6efd;
}

.btn-attachment.other {
    border-color: rgba(108, 117, 125, 0.4);
    /* faint gray */
    color: #6c757d;
}

.btn-attachment.other i {
    color: #6c757d;
}

/* CKEditor table rendering */

figure.table table {
    width: 100%;
    border-collapse: collapse;
}

figure.table table td,
figure.table table th {
    border: 1px solid #dee2e6;
    padding: 8px;
}

figure.table table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* end CKEditor table rendering */

.previous_url-btn {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    background-color: #1F417A !important; /* blue color */
    color: #fff !important; /* white arrow */
    font-size: 20px !important;
    text-align: center !important;
    transition: background 0.2s !important;
}

.previous_url-btn:hover {
    background-color: #1f2fa0 !important; /* darker blue on hover */
    color: #fff !important;
    text-decoration: none !important;
}

.previous_url-btn i {
    display: inline-block;
    animation: moveLeft 1.2s infinite;
}

/* arrow animation */
@keyframes moveLeft {
    0%   { transform: translateX(0); }
    50%  { transform: translateX(-6px); }
    100% { transform: translateX(0); }
}
