/**
 * JSE Business Intelligence Tool - Consolidated Inline Styles
 * 
 * This file contains styles that were previously inline in blade templates.
 * Moved to external CSS to comply with strict CSP policies without nonces.
 */

/* ==========================================================================
   Utility Classes (for JS-controlled visibility)
   ========================================================================== */

.d-none-initial {
    display: none;
}

.jobs-dropdown-menu {
    min-width: 350px;
    max-width: 400px;
}

.icon-lg {
    font-size: 1.5rem;
}

.progress-thin {
    height: 6px;
}

/* ==========================================================================
   CSS Variables (Theme Colors)
   ========================================================================== */

:root {
    --jse-primary: #0056b3;
    --jse-secondary: #03a9f4;
}

/* ==========================================================================
   Login Page Styles
   ========================================================================== */

.bg-stock-img {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(/dashboard/img/stock.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

.login-page-body {
    background-color: #f8f9fa;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    max-width: 400px;
    width: 100%;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.logo-container img {
    height: 60px;
    object-fit: contain;
}

.login-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.login-btn {
    background: var(--jse-primary);
    border: none;
    padding: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: var(--jse-secondary);
    transform: translateY(-2px);
}

.footer-text {
    color: #6c757d;
    text-align: center;
    margin-top: 2rem;
    font-size: 0.8rem;
}

.forgot-link {
    color: var(--jse-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--jse-secondary);
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.password-toggle:hover {
    color: var(--jse-primary);
}

.password-toggle:focus {
    outline: none;
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-control {
    padding-right: 40px;
}

/* ==========================================================================
   Home Page Styles
   ========================================================================== */

.heading {
    font-size: 42px;
    color: #ccc;
    font-weight: bold;
}

@media only screen and (max-width: 600px) {
    .heading {
        font-size: 28px;
    }
}

/* ==========================================================================
   Loader / Spinner Styles
   ========================================================================== */

.lds-roller {
    display: inline-block;
    position: relative;
    width: 64px;
    height: 64px;
}

.lds-roller div {
    animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    transform-origin: 32px 32px;
}

.lds-roller div:after {
    content: " ";
    display: block;
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1ab394;
    margin: -3px 0 0 -3px;
}

.lds-roller div:nth-child(1) {
    animation-delay: -0.036s;
}

.lds-roller div:nth-child(1):after {
    top: 50px;
    left: 50px;
}

.lds-roller div:nth-child(2) {
    animation-delay: -0.072s;
}

.lds-roller div:nth-child(2):after {
    top: 54px;
    left: 45px;
}

.lds-roller div:nth-child(3) {
    animation-delay: -0.108s;
}

.lds-roller div:nth-child(3):after {
    top: 57px;
    left: 39px;
}

.lds-roller div:nth-child(4) {
    animation-delay: -0.144s;
}

.lds-roller div:nth-child(4):after {
    top: 58px;
    left: 32px;
}

.lds-roller div:nth-child(5) {
    animation-delay: -0.18s;
}

.lds-roller div:nth-child(5):after {
    top: 57px;
    left: 25px;
}

.lds-roller div:nth-child(6) {
    animation-delay: -0.216s;
}

.lds-roller div:nth-child(6):after {
    top: 54px;
    left: 19px;
}

.lds-roller div:nth-child(7) {
    animation-delay: -0.252s;
}

.lds-roller div:nth-child(7):after {
    top: 50px;
    left: 14px;
}

.lds-roller div:nth-child(8) {
    animation-delay: -0.288s;
}

.lds-roller div:nth-child(8):after {
    top: 45px;
    left: 10px;
}

@keyframes lds-roller {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Jobs Dropdown Styles
   ========================================================================== */

#jobs-dropdown .dropdown-menu {
    max-height: 400px;
    overflow-y: auto;
}

#jobs-dropdown .progress {
    background-color: #e9ecef;
}

#jobs-dropdown .cancel-job-btn:hover {
    color: #dc3545 !important;
}

#active-jobs-badge {
    font-size: 0.65rem;
    position: relative;
    top: -8px;
    left: -5px;
}

/* ==========================================================================
   DataTables Wrapper Styles
   ========================================================================== */

div.dataTables_wrapper div.dataTables_filter {
    text-align: right;
}

/* Admin User Table */
#user-table_wrapper {
    flex-direction: column;
}

#user-table_wrapper .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    flex-grow: 1;
    width: 100%;
    margin-bottom: 0.5rem;
}

#user-table_wrapper #user-table_filter .form-control {
    flex-grow: 1;
}

/* Awards Table */
#awards-table_wrapper {
    flex-direction: column;
}

#awards-table_wrapper .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    flex-grow: 1;
    width: 100%;
    margin-bottom: 0.5rem;
}

#awards-table_wrapper #awards-table_filter .form-control {
    flex-grow: 1;
}

/* ==========================================================================
   Award Result Page Styles
   ========================================================================== */

td.bg-success {
    background: #486f88;
}

td.bg-warning {
    background: #d4b96a;
}

td.bg-danger {
    background: #d46d6a;
}

.nav-tabs > li.active {
    background: #1ab394 !important;
}

.nav-tabs > li {
    padding: 0;
}

.nav-tabs > li.active a {
    color: white !important;
}

/* ==========================================================================
   Preloader / Percentage Loadbar Styles
   ========================================================================== */

.preloader-wrap {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    bottom: 0;
    background: white;
    opacity: 0.9;
    z-index: 999999;
}

.percentage {
    z-index: 100;
    border: 1px solid #ccc;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background: white;
    border-radius: 8px;
}

/* Percentage Progress Bar */
.percentage-bar {
    z-index: 100;
    border: 1px solid #ccc;
    text-align: center;
    color: #fff;
    line-height: 30px;
    font-size: 15px;
}

.percentage-loader,
.percentage-bar {
    height: 30px;
    max-width: 500px;
    border: 2px solid #69AF23;
    border-radius: 20px;
    font-weight: 300;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.percentage-loader-container:after,
.percentage-bar:after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.trackbar {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    color: #fff;
    text-align: center;
    line-height: 30px;
    overflow: hidden;
    position: relative;
    opacity: 0.99;
}

.loadbar {
    width: 0%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        #1ab394,
        #1ab394 10px,
        #63D2BD 10px,
        #63D2BD 20px
    );
    box-shadow: 0px 0px 14px 1px #008737;
    position: absolute;
    top: 0;
    left: 0;
    animation: flicker 5s infinite;
    overflow: hidden;
}

.glow {
    width: 0%;
    height: 0%;
    border-radius: 20px;
    box-shadow: 0px 0px 60px 10px #1ab394;
    position: absolute;
    bottom: -5px;
    animation: glow-animation 5s infinite;
}

@keyframes glow-animation {
    10% {
        opacity: 0.9;
    }
    30% {
        opacity: 0.86;
    }
    60% {
        opacity: 0.8;
    }
    80% {
        opacity: 0.75;
    }
    100% {
        opacity: 0.7;
    }
}

@keyframes flicker {
    10% {
        opacity: 0.95;
    }
    30% {
        opacity: 0.9;
    }
    60% {
        opacity: 0.85;
    }
    80% {
        opacity: 0.9;
    }
    100% {
        opacity: 1;
    }
}

/* ==========================================================================
   Admin Breadcrumb Styles
   ========================================================================== */

.admin-breadcrumb {
    padding: 1rem;
    background-color: #e9ecef;
}
