
:root {
    /* Primary Colors */
    --primary-color: #002449;
    --primary-dark: #00a950;
    --primary-light: #1565c0;

    /* Background Colors */
    --bg-main: #fdfdfd;
    --bg-secondary: #F3F3F3;
    --bg-white: #fff;
    --bg-panel: #F8F8F8;
    --bg-gray-light: #f3f3f3;

    /* Text Colors */
    --text-primary: #000;
    --text-secondary: #8d8888;
    --text-light: #fff;
    --text-muted: #bdc3c7;

    /* Status Colors */
    --success-color: #00CE6F;
    --success-dark: #009B50;
    --info-color: #A95DF0;
    --danger-color: #DB0630;
    --danger-dark: #AF0000;
    --warning-color: #B94A00;

    /* Navigation Colors */
    --nav-bg: #ffffff;
    --nav-header: #4D4D4D;
    --nav-brand: #002449;
    --nav-toggle: #002449;
    --nav-toggle-hover: #B40101;
    --nav-sidebar-bg: #001a33;
    --nav-sidebar-border: #003366;
    --nav-active: #001a33;
    --nav-active-border: #1565c0;
    --nav-hover: #003366;
    --nav-accent: #ff0000;

    /* Special Colors */
    --purple-gradient: #8702A8;
    --border-color: #808080;
    --shadow-color: rgba(107, 108, 109, 0.19);
    --nav-border-light: #002449;

    /* Authentication Page Colors */
    --auth-bg-image: url(../img/bg.png);
    --auth-form-bg: #ffffff;
    --auth-form-shadow: rgba(0, 0, 0, 0.25);
    --auth-button-bg: #002449;
    --auth-button-hover: #1565c0;
    --auth-input-border: #ddd;
    --auth-input-focus: #002449;
    --auth-text-primary: #444;
    --auth-text-secondary: #666;
    --auth-text-muted: #555;
    --auth-link-color: #002449;
    --auth-border-light: #eee;
    --auth-spinner-bg: #fff;
    --auth-spinner-transparent: rgba(255, 255, 255, 0.4);

    /* Message Colors */
    --message-success-bg: #d4edda;
    --message-success-text: #155724;
    --message-success-border: #c3e6cb;
    --message-danger-bg: #f8d7da;
    --message-danger-text: #721c24;
    --message-danger-border: #f5c6cb;
    --message-info-bg: #d1ecf1;
    --message-info-text: #0c5460;
    --message-info-border: #bee5eb;
    --message-warning-bg: #fff3cd;
    --message-warning-text: #856404;
    --message-warning-border: #ffeaa7;

    /* Form Element Colors */
    --form-bg-light: #f8f9fa;
    --form-bg-info: #e7f3ff;
    --form-border-info: #b8daff;

    /* Switch View Page Colors */
    --switch-view-bg-image: url(../img/switch_bg.png);
    --switch-view-bg-color: #F3F3F3;
    --switch-view-bg-overlay: rgba(0, 0, 0, 0.3);
    --switch-container-bg: #ffffff;
    --switch-container-shadow: rgba(0, 0, 0, 0.1);
    --switch-title-color: #1565c0;
    --switch-subtitle-color: #666;
    --switch-option-bg: #F8F8F8;
    --switch-option-border: #e9ecef;
    --switch-option-text: #333;
    --switch-option-shadow-hover: rgba(0, 0, 0, 0.15);
    --switch-admin-border: #1565c0;
    --switch-admin-bg: #1565c0;
    --switch-admin-icon-bg: #1565c0;
    --switch-employee-border: #00CE6F;
    --switch-employee-bg: #00CE6F;
    --switch-employee-icon-bg: #00CE6F;
    --switch-icon-hover-bg: rgba(255, 255, 255, 0.2);
}

/*==============================================
    GENERAL  STYLES
    =============================================*/
body {
    font-family: 'Open Sans', sans-serif;
}

/* IMPORTANT: Ensure all spans are always visible */
span {
    display: inline !important;
}

p span,
p:hover span,
div span,
div:hover span {
    display: inline !important;
}

/* Hidden text that shows on hover - ONLY applies to .shh class */
.shh {
    display: none !important;
}

p:hover .shh {
    display: inline !important;
}

 #wrapper {
    width: 100%;
    background: var(--bg-main);
}

#page-wrapper {
    padding: 15px 15px;
    min-height: 600px;
    background: var(--bg-secondary);

}
#page-inner {
    width:100%;
    margin:10px 20px 10px 0px;
    background-color: var(--bg-white)!important;
    padding:10px;
    min-height:1200px;
}

.text-center {
    text-align:center;
}
.no-boder {
    border:1px solid var(--bg-gray-light);
}
h2 {
    color: var(--primary-color);
}
h4 {
    padding-top:10px;
}
.square-btn-adjust {
    border: 0px solid transparent;
   -webkit-border-radius: 0px;
-moz-border-radius: 0px;
border-radius: 0px;

}
p {
    font-size:16px;
    line-height:25px;
    padding-top:20px;
}
/*==============================================
   DASHBOARD STYLES
    =============================================*/
.panel-back {
    background-color: var(--bg-panel);

}
   .noti-box {
min-height: 100px;
padding: 20px;
}

    .noti-box .icon-box {
display: block;
float: left;
margin: 0 15px 10px 0;
width: 70px;
height: 70px;
line-height: 75px;
vertical-align: middle;
text-align: center;
font-size: 40px;
}
.text-box p{
    margin: 0 0 3px;
}
.main-text {
    font-size: 25px;
    font-weight:600;
}
.set-icon {
    -webkit-border-radius: 50px;
-moz-border-radius: 50px;
border-radius: 50px;

}
    .bg-color-green {
background-color: var(--success-color);
color: var(--text-light);
}
 .bg-color-blue {
background-color: var(--info-color);
color: var(--text-light);
}
  .bg-color-red {
background-color: var(--danger-color);
color: var(--text-light);
}
  .bg-color-brown {
background-color: var(--warning-color);
color: var(--text-light);
}


 .icon-box-right {
display: block;
float: right;
margin: 0 15px 10px 0;
width: 70px;
height: 70px;
line-height: 75px;
vertical-align: middle;
text-align: center;
font-size: 40px;
}

 .main-temp-back {
background: var(--purple-gradient);
color: var(--text-light);
font-size: 16px;
font-weight: 300;
text-align: center;
}
 .main-temp-back .text-temp {
font-size: 40px;
}
.back-dash {
    padding:20px;
    font-size:20px;
    font-weight:500;
      -webkit-border-radius: 0px;
-moz-border-radius: 0px;
border-radius: 0px;
background-color: var(--primary-light);
color: var(--text-light);
}
    .back-dash p {
        padding-top:16px;
        font-size:13px;
        color: var(--text-light);
        line-height:25px;
        text-align:justify;
    }
    .back-footer-green {
    background-color: var(--success-dark);
    border-top: 0px solid var(--text-light);
}
     .back-footer-red {
    background-color: var(--danger-dark);
    border-top: 0px solid var(--text-light);
}
     .color-bottom-txt {
   color: var(--text-primary);
font-size: 16px;
line-height: 30px;
}
     /*CHAT PANEL*/
 .chat-panel .panel-body {
height: 450px;
overflow-y: scroll;
}
 .chat-box {
margin: 0;
padding: 0;
list-style: none;
}
 .chat-box li {
margin-bottom: 15px;
padding-bottom: 5px;
border-bottom: 1px dotted var(--border-color);
}
 .chat-box li.left .chat-body {
margin-left: 90px;
}
 .chat-box li .chat-body p {
margin: 0;
color: var(--text-secondary);
}
.chat-img>img {
    margin-left:20px;
}

/*==============================================
    MENU STYLES
    =============================================*/


.user-image {
    margin: 25px auto;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
max-height:170px;
max-width:170px;
}

.navbar-cls-top .navbar-brand {
	color: var(--text-light);
background: var(--nav-brand);
width: 260px;
text-align: center;
height: 60px;
font-size: 30px;
font-weight: 700;
}
.active-menu {
    background-color: var(--nav-active)!important;
    color: var(--text-light)!important;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.active-menu::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--nav-active-border);
}

.active-menu:hover {
    background-color: var(--nav-active)!important;
    color: var(--text-light)!important;
}

.arrow {
    float: right;
}

.fa.arrow:before {
    content: "\f104";
}

.active > a > .fa.arrow:before {
    content: "\f107";
}


.nav-second-level li,
.nav-third-level li {
    border-bottom: none !important;
}

.nav-second-level li a {
    padding-left: 37px;
}

.nav-third-level li a {
    padding-left: 55px;
}
.sidebar-collapse , .sidebar-collapse .nav{
	background:none;
}
.sidebar-collapse .nav {
	padding:0;
}
.sidebar-collapse .nav > li > a {
	color: var(--text-light);
	background: var(--nav-brand);
	text-shadow:none;

}
.sidebar-collapse > .nav > li > a {
	padding:15px 10px;
}
.sidebar-collapse > .nav > li {
	border-bottom: 1px solid var(--shadow-color);
}
.sidebar-collapse .nav > li > a:hover,
.sidebar-collapse .nav > li > a:focus {

	background: var(--nav-hover);
	outline:0;
}

.nav-second-level > li > a:before ,
.nav-third-level > li > a:before {
	content:"";
	display:block;
	position:absolute;
	left:20px;
	width:15px;
	height:1px;
	background: var(--nav-accent);
	top:20px;
}
.nav-second-level > li > a:after,
.nav-third-level > li > a:after {
	content:"";
	display:block;
	position:absolute;
	left:20px;
	width:1px;
	height:100%;
	background: var(--nav-accent);
	top:0px;
	z-index:10;
}
.nav-second-level  > li:last-child > a:after,
.nav-third-level  > li:last-child > a:after {
	height:50%;
}
.nav-third-level > li > a:after,
.nav-third-level > li > a:before  {
	left:40px;
}
.navbar-side {
	border:none;
	background-color: #ffffff;

}
.navbar-cls-top {
	background: var(--nav-brand);
	border-bottom:none;

}
.navbar-cls-top .navbar-brand:hover {

background: var(--nav-brand);
color: var(--text-light);

}

.navbar-default {
border:0px solid black;

}
.navbar-header {
    background: var(--nav-toggle);
}
.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {
background-color: var(--nav-toggle-hover);
}
.navbar-default .navbar-toggle {
border-color: var(--text-light);
}

.navbar-default .navbar-toggle .icon-bar {
background-color: var(--text-light);
}
.nav > li > a > i {
    margin-right:10px;
}
/*==============================================
    UI ELEMENTS STYLES
    =============================================*/
.btn-circle {
width: 50px;
height: 50px;
padding: 6px 0;
 -webkit-border-radius: 25px;
-moz-border-radius: 25px;
border-radius: 25px;
text-align: center;
font-size: 12px;
line-height: 1.428571429;
}

/*==============================================
    MEDIA QUERIES
    =============================================*/

 @media(min-width:768px) {
     #page-wrapper{
               margin: 0 0 0 260px;
        padding: 15px 30px;
        min-height: 1200px;

    }


    .navbar-side {
        z-index: 1;
        position: absolute;
        width: 260px;
    }

   .navbar {
 border-radius: 0px;
}

}

/* Navigation Header Styles */
.nav-header {
    padding: 8px 15px 5px 15px !important;
    background: var(--nav-sidebar-bg) !important;
    border-bottom: 1px solid var(--nav-sidebar-border) !important;
    margin: 5px 0 0 0 !important;
}

.nav-header small {
    color: var(--text-light) !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

.nav-header:hover {
    background: var(--nav-sidebar-bg) !important;
    cursor: default !important;
}

.nav-header:hover small {
    color: var(--text-light) !important;
}

/* Navigation spacing improvements */
#main-menu li a {
    padding: 12px 15px !important;
    border-bottom: 1px solid var(--nav-border-light) !important;
}

#main-menu li:first-child {
    border-bottom: 2px solid var(--nav-sidebar-border) !important;
    margin-bottom: 10px !important;
}

/*==============================================
    AUTHENTICATION PAGES STYLES (Bootstrap-based)
    =============================================*/

/* Auth Body Background */
.auth-body {
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
    font-family: "Open Sans", sans-serif;
}

/* Auth Card Customizations */
.auth-card {
    background: var(--auth-form-bg);
    border: none;
    box-shadow: 0 4px 12px var(--auth-form-shadow);
    border-radius: 8px;
}

.auth-card .card-body {
    padding: 2rem;
}

/* Logo Styling */
.auth-logo {
    max-width: 250px;
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
}

/* Title Styling */
.auth-title {
    color: var(--auth-text-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--auth-border-light);
}

/* Subtitle for reset page */
.auth-subtitle {
    color: var(--auth-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

/* Form Control Customizations */
.auth-form .form-control {
    border: 1px solid var(--auth-input-border);
    border-radius: 0.375rem;
    padding: 0.75rem;
    font-size: 0.95rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.auth-form .form-control:focus {
    border-color: var(--auth-input-focus);
    box-shadow: 0 0 0 0.2rem rgba(0, 169, 80, 0.25);
}

/* Button Customizations */
.btn-auth-primary {
    background-color: var(--auth-button-bg);
    border-color: var(--auth-button-bg);
    color: var(--text-light);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease-in-out;
}

.btn-auth-primary:hover,
.btn-auth-primary:focus {
    background-color: var(--auth-button-hover);
    border-color: var(--auth-button-hover);
    color: var(--text-light);
}

/* Link Styling */
.auth-link {
    color: var(--auth-link-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.auth-link:hover {
    color: var(--auth-button-hover);
    text-decoration: underline;
}

/* Spinner Animation */
.btn-loading .spinner-border {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert Customizations */
.alert-auth {
    border-radius: 0.375rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Security Note */
.security-note {
    background-color: var(--form-bg-light);
    color: var(--auth-text-secondary);
    border: 1px solid var(--auth-border-light);
    border-radius: 0.375rem;
    padding: 0.75rem;
    font-size: 0.85rem;
}

/* Password Requirements */
.password-requirements {
    background-color: var(--form-bg-light);
    color: var(--auth-text-muted);
    border: 1px solid var(--auth-border-light);
    border-radius: 0.375rem;
    padding: 0.75rem;
    font-size: 0.85rem;
}

/* User Info */
.user-info {
    background-color: var(--form-bg-info);
    color: var(--message-info-text);
    border: 1px solid var(--form-border-info);
    border-radius: 0.375rem;
    padding: 0.75rem;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .auth-card .card-body {
        padding: 1.5rem 1rem;
    }

    .auth-logo {
        max-width: 200px;
    }

    .auth-title {
        font-size: 1.1rem;
    }
}

/*==============================================
    SWITCH VIEW PAGE STYLES
    =============================================*/

/* Switch View Body */
.switch-view-body {
    background: var(--switch-view-bg-color);
    background-image: var(--switch-view-bg-image);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Open Sans', sans-serif;
    height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Optional overlay for better text readability */
.switch-view-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--switch-view-bg-overlay);
    z-index: 0;
}

.switch-view-body .switch-container {
    position: relative;
    z-index: 1;
}

/* Switch Container */
.switch-container {
    background: var(--switch-container-bg);
    border-radius: 10px;
    box-shadow: 0 15px 35px var(--switch-container-shadow);
    padding: 40px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    margin: 20px;
}

.switch-title {
    color: var(--switch-title-color);
    font-size: 2.2em;
    font-weight: 400;
    margin-bottom: 10px;
}

.switch-subtitle {
    color: var(--switch-subtitle-color);
    font-size: 1.1em;
    margin-bottom: 40px;
}

/* Switch Options */
.switch-options {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.switch-option {
    background: var(--switch-option-bg);
    border: 2px solid var(--switch-option-border);
    border-radius: 10px;
    padding: 30px 25px;
    text-decoration: none;
    color: var(--switch-option-text);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 220px;
    max-width: 250px;
    min-height: 100px;
}

.switch-option:hover {
    text-decoration: none;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--switch-option-shadow-hover);
}

.switch-option i {
    font-size: 3em;
    margin-bottom: 15px;
    display: block;
    width: 70px;
    height: 70px;
    line-height: 75px;
    margin: 0 auto 15px auto;
    border-radius: 50px;
    text-align: center;
}

.switch-option h3 {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 8px;
}

.switch-option p {
    font-size: 0.95em;
    margin: 0;
    opacity: 0.8;
}

/* Admin Option */
.admin-option {
    background: var(--switch-option-bg);
    border-color: var(--switch-admin-border);
}

.admin-option i {
    background-color: var(--switch-admin-icon-bg);
    color: var(--text-light);
}

.admin-option:hover {
    background: var(--switch-admin-bg);
    border-color: var(--switch-admin-border);
    color: var(--text-light);
}

.admin-option:hover i {
    background-color: var(--switch-icon-hover-bg);
}

/* Employee Option */
.employee-option {
    background: var(--switch-option-bg);
    border-color: var(--switch-employee-border);
}

.employee-option i {
    background-color: var(--switch-employee-icon-bg);
    color: var(--text-light);
}

.employee-option:hover {
    background: var(--switch-employee-bg);
    border-color: var(--switch-employee-border);
    color: var(--text-light);
}

.employee-option:hover i {
    background-color: var(--switch-icon-hover-bg);
}

/* Responsive for Switch View */
@media (max-width: 768px) {
    .switch-options {
        flex-direction: column;
    }

    .switch-option {
        max-width: none;
    }
}

/*==============================================
    FORM STYLES
    =============================================*/

.form-section {
    background: var(--form-bg-light);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.section-title {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.required {
    color: var(--danger-color);
}

/*==============================================
    DASHBOARD CHART STYLES
    =============================================*/

/* Chart Panels */
.chart-panel {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.chart-panel .panel-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Charts */
.chart-container {
    width: 100%;
    position: relative;
}

#gender_chart,
#status_chart,
#roleChart,
#statusChart {
    height: 300px;
}

#departments_chart,
#business_units_chart,
#age_distribution_chart,
#tenure_chart,
#business_unit_gender_chart {
    height: 350px;
}

#contract_status_chart {
    height: 300px;
}

/* Compact Stats Cards */
.noti-box {
    min-height: 80px !important;
    margin-bottom: 15px !important;
    display: flex !important;
    align-items: center !important;
    padding: 15px !important;
}

.noti-box .icon-box {
    width: 50px !important;
    height: 50px !important;
    line-height: 50px !important;
    font-size: 18px !important;
    margin-right: 15px !important;
    flex-shrink: 0 !important;
}

.noti-box .text-box {
    margin-left: 0 !important;
    padding: 0 !important;
    flex: 1 !important;
}

.noti-box .main-text {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 2px !important;
    line-height: 1.2 !important;
}

.noti-box .text-muted {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: #2c3e50 !important;
}

/* Ensure all spans remain visible in stat cards */
.noti-box span,
.noti-box p:hover span {
    display: inline !important;
}

/* Ensure labels and badges remain visible on hover */
.label,
.badge,
p:hover .label,
p:hover .badge {
    display: inline !important;
}

/* Responsive adjustments for compact cards */
@media (max-width: 768px) {
    .noti-box {
        min-height: 70px !important;
        padding: 12px !important;
    }

    .noti-box .icon-box {
        width: 45px !important;
        height: 45px !important;
        line-height: 45px !important;
        font-size: 16px !important;
        margin-right: 12px !important;
    }

    .noti-box .text-box {
        margin-left: 0 !important;
        padding: 0 !important;
    }

    .noti-box .main-text {
        font-size: 14px !important;
    }

    .noti-box .text-muted {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .noti-box {
        min-height: 65px !important;
        padding: 10px !important;
    }

    .noti-box .icon-box {
        width: 40px !important;
        height: 40px !important;
        line-height: 40px !important;
        font-size: 14px !important;
        margin-right: 10px !important;
    }

    .noti-box .main-text {
        font-size: 13px !important;
    }

    .noti-box .text-muted {
        font-size: 12px !important;
    }
}

/* Select2 Dropdown Fixes - Force full width */
.form-group .select2-container,
.select2-container,
span.select2-container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.select2-container .select2-selection,
.select2-container--bootstrap .select2-selection {
    width: 100% !important;
    box-sizing: border-box !important;
}

.select2-container .select2-selection--single {
    height: 38px !important;
}
