/* ===================================================================
   ADMIN COLOR SCHEME - Consistent Professional Design
   =================================================================== */

/* CSS Custom Properties for Admin Color Scheme */
:root {
    /* Primary Brand Colors */
    --my-primary-color: #2563eb; /* Professional Blue */
    --my-secondary-color: #64748b; /* Slate Gray */
    --my-third-color: #f1f5f9; /* Light Gray Background */
    --my-forth-color: #e2e8f0; /* Border Gray */
    --my-fifth-color: #ffffff; /* White */
    --my-sixth-color: #1e293b; /* Dark Slate */
    --my-seventh-color: #cbd5e1; /* Medium Gray */

    /* Status Colors */
    --success-color: #10b981; /* Emerald Green */
    --warning-color: #f59e0b; /* Amber */
    --danger-color: #ef4444; /* Red */
    --info-color: #06b6d4; /* Cyan */

    /* Sidebar Colors */
    --sidebar-bg: #1e293b; /* Dark Slate */
    --sidebar-hover: #334155; /* Lighter Slate */
    --sidebar-active: #2563eb; /* Primary Blue */
    --sidebar-text: #cbd5e1; /* Light Gray Text */
    --sidebar-text-active: #ffffff; /* White Text */

    /* Header Colors */
    --header-bg: #ffffff; /* White */
    --header-border: #e2e8f0; /* Light Border */
    --header-text: #1e293b; /* Dark Text */

    /* Card Colors */
    --card-bg: #ffffff; /* White */
    --card-border: #e2e8f0; /* Light Border */
    --card-shadow: rgba(0, 0, 0, 0.05); /* Subtle Shadow */

    /* Button Colors */
    --btn-primary-bg: #2563eb; /* Primary Blue */
    --btn-primary-hover: #1d4ed8; /* Darker Blue */
    --btn-secondary-bg: #64748b; /* Slate Gray */
    --btn-secondary-hover: #475569; /* Darker Slate */

    /* Table Colors */
    --table-header-bg: #f8fafc; /* Very Light Gray */
    --table-border: #e2e8f0; /* Light Border */
    --table-hover: #f1f5f9; /* Light Gray */

    /* Form Colors */
    --form-border: #d1d5db; /* Gray Border */
    --form-focus: #2563eb; /* Primary Blue */
    --form-error: #ef4444; /* Red */
    --form-success: #10b981; /* Green */
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --my-fifth-color: #1e293b; /* Dark background */
        --my-sixth-color: #f1f5f9; /* Light text */
        --header-bg: #1e293b; /* Dark header */
        --header-text: #f1f5f9; /* Light text */
        --card-bg: #334155; /* Dark card */
        --table-header-bg: #475569; /* Dark table header */
    }
}

/* ===================================================================
   SIDEBAR STYLING - Professional Dark Theme
   =================================================================== */

/* Main Sidebar */
.app-sidebar {
    background: var(--sidebar-bg) !important;
    border-right: 1px solid var(--sidebar-hover) !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1) !important;
}

/* Sidebar Logo Area */
.app-sidebar__logo {
    background: var(--sidebar-bg) !important;
    border-bottom: 1px solid var(--sidebar-hover) !important;
    padding: 15px 20px !important;
}

.app-sidebar__logo img {
    max-height: 40px !important;
    width: auto !important;
}

/* Sidebar User Info */
.app-sidebar__user {
    background: var(--sidebar-hover) !important;
    border-bottom: 1px solid var(--sidebar-hover) !important;
    padding: 15px 20px !important;
}

.app-sidebar__user-avatar {
    border: 2px solid var(--sidebar-text) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.app-sidebar__user-name {
    color: var(--sidebar-text-active) !important;
    font-weight: 600 !important;
}

.app-sidebar__user-designation {
    color: var(--sidebar-text) !important;
    font-size: 12px !important;
}

/* Sidebar Menu Items */
.app-menu {
    padding: 0 !important;
}

.app-menu__item {
    margin: 0 !important;
}

.app-menu__item a {
    color: var(--sidebar-text) !important;
    padding: 12px 20px !important;
    border-radius: 0 !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
}

.app-menu__item a:hover {
    background: var(--sidebar-hover) !important;
    color: var(--sidebar-text-active) !important;
    transform: translateX(5px) !important;
}

.app-menu__item.active > a,
.app-menu__item a.active {
    background: var(--sidebar-active) !important;
    color: var(--sidebar-text-active) !important;
    border-right: 3px solid var(--sidebar-text-active) !important;
}

.app-menu__icon {
    margin-right: 12px !important;
    font-size: 16px !important;
    width: 20px !important;
    text-align: center !important;
}

.app-menu__label {
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Submenu Styling */
.treeview-menu {
    background: rgba(0, 0, 0, 0.1) !important;
    padding: 0 !important;
}

.treeview-menu li a {
    padding: 10px 20px 10px 50px !important;
    font-size: 13px !important;
    color: var(--sidebar-text) !important;
    border-left: 3px solid transparent !important;
}

.treeview-menu li a:hover {
    background: var(--sidebar-hover) !important;
    color: var(--sidebar-text-active) !important;
    border-left-color: var(--sidebar-active) !important;
}

.treeview-menu li.active a {
    background: var(--sidebar-active) !important;
    color: var(--sidebar-text-active) !important;
    border-left-color: var(--sidebar-text-active) !important;
}

/* ===================================================================
   HEADER STYLING - Clean Professional Design
   =================================================================== */

/* Main Header */
.app-header {
    background: var(--header-bg) !important;
    border-bottom: 1px solid var(--header-border) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    padding: 0 20px !important;
    height: 60px !important;
}

/* Header Logo */
.app-header__logo {
    color: var(--header-text) !important;
    font-weight: 700 !important;
    font-size: 18px !important;
}

/* Header Toggle Button */
.app-sidebar__toggle {
    color: var(--header-text) !important;
    background: transparent !important;
    border: none !important;
    padding: 10px !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
}

.app-sidebar__toggle:hover {
    background: var(--my-third-color) !important;
    color: var(--my-primary-color) !important;
}

/* Header Right Side */
.app-header__content {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

/* Header Navigation Items */
.app-nav {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.app-nav__item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px !important;
    color: var(--header-text) !important;
    background: transparent !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    width: 40px !important;
    height: 40px !important;
}

.app-nav__item:hover,
.app-nav__item:focus {
    background: var(--my-third-color) !important;
    color: var(--my-primary-color) !important;
    transform: scale(1.05) !important;
}

.app-nav__item i {
    font-size: 18px !important;
    color: inherit !important;
}

/* Header User Dropdown */
.app-header__user {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.app-header__user:hover {
    background: var(--my-third-color) !important;
}

.app-header__user-avatar {
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    border: 2px solid var(--my-forth-color) !important;
}

.app-header__user-name {
    color: var(--header-text) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

/* ===================================================================
   CARD STYLING - Modern Card Design
   =================================================================== */

/* Main Cards */
.tile {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 10px var(--card-shadow) !important;
    margin-bottom: 25px !important;
    overflow: hidden !important;
}

.tile-head {
    background: var(--my-third-color) !important;
    border-bottom: 1px solid var(--card-border) !important;
    padding: 20px 25px !important;
    margin: 0 !important;
}

.tile-title {
    color: var(--my-sixth-color) !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    margin: 0 !important;
}

.tile-body {
    padding: 25px !important;
    background: var(--card-bg) !important;
}

/* ===================================================================
   BUTTON STYLING - Professional Button Design
   =================================================================== */

/* Primary Buttons */
.btn-primary {
    background: var(--btn-primary-bg) !important;
    border-color: var(--btn-primary-bg) !important;
    color: white !important;
    font-weight: 500 !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2) !important;
}

.btn-primary:hover {
    background: var(--btn-primary-hover) !important;
    border-color: var(--btn-primary-hover) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3) !important;
}

/* Secondary Buttons */
.btn-secondary {
    background: var(--btn-secondary-bg) !important;
    border-color: var(--btn-secondary-bg) !important;
    color: white !important;
    font-weight: 500 !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.btn-secondary:hover {
    background: var(--btn-secondary-hover) !important;
    border-color: var(--btn-secondary-hover) !important;
    transform: translateY(-1px) !important;
}

/* Success Buttons */
.btn-success {
    background: var(--success-color) !important;
    border-color: var(--success-color) !important;
    color: white !important;
}

.btn-success:hover {
    background: #059669 !important;
    border-color: #059669 !important;
}

/* Warning Buttons */
.btn-warning {
    background: var(--warning-color) !important;
    border-color: var(--warning-color) !important;
    color: white !important;
}

.btn-warning:hover {
    background: #d97706 !important;
    border-color: #d97706 !important;
}

/* Danger Buttons */
.btn-danger {
    background: var(--danger-color) !important;
    border-color: var(--danger-color) !important;
    color: white !important;
}

.btn-danger:hover {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
}

/* ===================================================================
   TABLE STYLING - Professional Table Design
   =================================================================== */

/* Table Headers */
.table .thead-dark th {
    background: var(--table-header-bg) !important;
    color: var(--my-sixth-color) !important;
    border-color: var(--table-border) !important;
    font-weight: 600 !important;
    padding: 15px 12px !important;
}

/* Table Rows */
.table tbody tr {
    transition: all 0.3s ease !important;
}

.table tbody tr:hover {
    background: var(--table-hover) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.table td {
    padding: 12px !important;
    border-color: var(--table-border) !important;
    color: var(--my-sixth-color) !important;
}

/* ===================================================================
   FORM STYLING - Clean Form Design
   =================================================================== */

/* Form Controls */
.form-control {
    border: 1px solid var(--form-border) !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    background: var(--card-bg) !important;
    color: var(--my-sixth-color) !important;
}

.form-control:focus {
    border-color: var(--form-focus) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

/* Form Labels */
.form-label {
    color: var(--my-sixth-color) !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}

/* Form Validation */
.has-error .form-control {
    border-color: var(--form-error) !important;
}

.has-success .form-control {
    border-color: var(--form-success) !important;
}

/* ===================================================================
   MODAL STYLING - Professional Modal Design
   =================================================================== */

.modal-header {
    background: var(--my-primary-color) !important;
    color: white !important;
    border-radius: 0 !important;
    padding: 20px 25px !important;
}

.modal-title {
    font-weight: 600 !important;
    font-size: 18px !important;
}

.modal-body {
    padding: 25px !important;
    background: var(--card-bg) !important;
}

.modal-footer {
    background: var(--my-third-color) !important;
    border-top: 1px solid var(--card-border) !important;
    padding: 20px 25px !important;
}

/* ===================================================================
   STATUS BADGES - Professional Status Indicators
   =================================================================== */

.status-badge.status-pending {
    background: var(--my-secondary-color) !important;
    color: white !important;
}

.status-badge.status-submitted {
    background: var(--info-color) !important;
    color: white !important;
}

.status-badge.status-under-review {
    background: var(--warning-color) !important;
    color: white !important;
}

.status-badge.status-completed {
    background: var(--success-color) !important;
    color: white !important;
}

.status-badge.status-rejected {
    background: var(--danger-color) !important;
    color: white !important;
}

/* ===================================================================
   QUESTION NUMBER BADGES - Professional Design
   =================================================================== */

.question-number-badge {
    background: linear-gradient(
        135deg,
        var(--my-primary-color) 0%,
        var(--btn-primary-hover) 100%
    ) !important;
    color: white !important;
    border-radius: 50% !important;
    width: 35px !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
    transition: all 0.3s ease !important;
}

.question-number-badge:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4) !important;
}

.question-number-badge .number {
    color: white !important;
    font-weight: 600 !important;
}

/* ===================================================================
   DEPARTMENT PAGE HEADER - Professional Design
   =================================================================== */

.app-title {
    background: var(--card-bg) !important;
    padding: 25px 30px !important;
    border-radius: 12px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 4px 15px var(--card-shadow) !important;
    border: 1px solid var(--card-border) !important;
}

.app-title h1 {
    margin-bottom: 8px !important;
    color: var(--my-sixth-color) !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.app-title h1 i {
    color: var(--my-primary-color) !important;
    font-size: 22px !important;
}

.app-title p {
    margin: 0 !important;
    color: var(--my-secondary-color) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
}

.app-title .btn-group {
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
}

.app-title .btn-group .btn {
    padding: 10px 20px !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.app-title .btn-group .btn i {
    font-size: 14px !important;
}

/* ===================================================================
   DEPARTMENT QUESTIONS - Professional Design
   =================================================================== */

.department-question-card {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 10px var(--card-shadow) !important;
    margin-bottom: 20px !important;
}

.department-question-card:hover {
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1) !important;
    transform: translateY(-2px) !important;
    border-color: var(--my-primary-color) !important;
}

.department-question-header {
    display: flex !important;
    align-items: flex-start !important;
    gap: 15px !important;
    padding: 20px !important;
    background: var(--my-third-color) !important;
    border-bottom: 1px solid var(--card-border) !important;
}

.department-question-icon {
    width: 45px !important;
    height: 45px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    color: white !important;
    background: var(--my-primary-color) !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
}

.department-question-content {
    flex: 1 !important;
}

.department-question-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--my-sixth-color) !important;
    line-height: 1.4 !important;
    margin-bottom: 5px !important;
}

.department-question-number {
    font-size: 12px !important;
    color: var(--my-secondary-color) !important;
    font-weight: 500 !important;
}

.department-question-body {
    padding: 20px !important;
    background: var(--card-bg) !important;
}

.department-rating-select {
    border: 1px solid var(--form-border) !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    background: var(--card-bg) !important;
    color: var(--my-sixth-color) !important;
}

.department-rating-select:focus {
    border-color: var(--my-primary-color) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

/* ===================================================================
   KRA/SELF ASSESSMENT HEADERS - Professional Design
   =================================================================== */

.kra-header {
    background: linear-gradient(
        135deg,
        var(--my-primary-color) 0%,
        var(--btn-primary-hover) 100%
    ) !important;
    color: white !important;
    padding: 25px 30px !important;
    border-radius: 12px 12px 0 0 !important;
    margin-bottom: 0 !important;
}

.kra-header h2 {
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.kra-header h2 i {
    font-size: 18px !important;
    opacity: 0.9 !important;
}

.kra-header p {
    margin: 5px 0 0 0 !important;
    font-size: 14px !important;
    opacity: 0.9 !important;
    font-weight: 400 !important;
}

.self-assessment-header {
    background: linear-gradient(
        135deg,
        var(--success-color) 0%,
        #059669 100%
    ) !important;
    color: white !important;
    padding: 25px 30px !important;
    border-radius: 12px 12px 0 0 !important;
    margin-bottom: 0 !important;
}

.self-assessment-header h2 {
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.self-assessment-header h2 i {
    font-size: 18px !important;
    opacity: 0.9 !important;
}

.self-assessment-header p {
    margin: 5px 0 0 0 !important;
    font-size: 14px !important;
    opacity: 0.9 !important;
    font-weight: 400 !important;
}

.hide {
    display: none !important;
}

.marginR15 {
    margin-right: 15px;
}

.marginR19 {
    margin-right: 19px;
}

/********************************************************************************************loader css*************************/

.web-loader {
    position: fixed;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    /* background: rgba(8, 8, 8, 0); */
    background-color: transparent;
    top: 0;
    left: 0;
}

.web-loader .spinner-border {
    height: 48px !important;
    width: 48px !important;
    border: 5px solid currentColor;
    border-right-color: transparent;
    color: var(--my-primary-color) !important;
}

/********************************************************************************************scroll css*************************/
/* width */
::-webkit-scrollbar {
    width: 7px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* width */
::-webkit-scrollbar:horizontal {
    height: 7px;
}

/* Track */
::-webkit-scrollbar-track:horizontal {
    background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb:horizontal {
    background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.login-content .login-box .login-form,
.login-content .login-box .forget-form {
    position: unset !important;
}

.login-content .login-box {
    min-height: 200px;
}

/* header{align-items: center;}
header .pilot-company-logo {display: flex;align-items: center;max-width: 182px;height:40px;padding:0 4px;}
header .pilot-company-logo img{width:100%;height:100%;}
header .app-sidebar__toggle{width: 50px;}
.app-sidebar{overflow: hidden;}
.app-sidebar .app-sidebar__user .app-sidebar__user-avatar{border-radius: 0px !important;}
.app-sidebar .app-menu li .treeview-menu{overflow-y: auto;}
.treeview.is-expanded .treeview-menu{max-height:60vh;}*/
.app-content .tile .dataTables_filter {
    position: absolute;
    right: 20px;
    top: 20px;
}

.app-content .tile .dataTables_info {
    position: absolute;
    left: 20px;
    bottom: 44px;
}

.app-content .tile .dataTables_paginate {
    position: absolute;
    bottom: 25px;
    right: 20px;
}

.app-content .tile .dataTables_length {
    position: absolute;
    top: 20px;
}

.app-content .tile .dt-buttons {
    position: absolute;
    left: 20px;
    top: 20px;
}

.app-content .tile table {
    margin: 48px 0 60px !important;
}

.expandCompressTableColumn {
    cursor: pointer;
}

main table thead tr:nth-child(2) th {
    min-width: 180px;
}

main table thead tr:nth-child(2) th input {
    width: calc(100% - 25px);
}

main table thead tr:nth-child(2) th i {
    padding-left: 8px;
}

/* @media (min-width: 768px)
{
  .sidebar-mini.sidenav-toggled .treeview-menu {padding: 0;}
  .sidebar-mini.sidenav-toggled .treeview:hover .app-menu__label{width: 220px;}
  .sidebar-mini.sidenav-toggled .treeview-menu a{text-overflow: ellipsis;overflow: hidden;width:213px;white-space: nowrap;display: inline-block;}
}

.bs-tooltip-left .arrow{
  display: none;
}

.tooltip {
  left: 221px !important;
}

.datepicker.dropdown-menu {
  top: 233px !important;
} */

.modal-content {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    /*border-radius: 0.3rem;*/
    outline: 0;
    border-radius: 0;
}

.modal-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    /*border-top-left-radius: 0.3rem;
  border-top-right-radius: 0.3rem;*/
    background-color: var(--my-primary-color);
    color: white;
    border-radius: 0;
}

.modal-body {
    position: relative;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 1rem;
    border-radius: 0;
}

.modal-footer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    background-color: #f3f7f9;
    border-radius: 0;
}

.form-control {
    border: 1px solid #ced4da;
    border-radius: 0px;
}

.app-sidebar__user-avatar {
    width: 45px;
    height: 45px;
}

/***************************************************************************************************form validation css ***********************/
/* Color of invalid field */
.has-error .form-control {
    border: 1px solid #c23321 !important;
}

.has-warning .form-control {
    border: 1px solid #c23321 !important;
}

/* Color of valid field */
.has-success .form-control {
    border: 1px solid #28a745 !important;
}

/* Color of invalid field */
.has-error .form-control-file {
    border: 1px solid #c23321 !important;
}

.has-warning .form-control-file {
    border: 1px solid #c23321 !important;
}

/* Color of valid field */
.has-success .form-control-file {
    border: 1px solid #28a745 !important;
}

/* Color of invalid field */
.has-error .form-control-feedback {
    color: #c23321 !important;
}

.has-warning .form-control-feedback {
    color: #c23321 !important;
}

/* Color of valid field */
.has-success .form-control-feedback {
    color: #28a745 !important;
}

.fv-form-bootstrap4:not(.form-inline) label ~ .fv-control-feedback {
    top: 29px;
    right: -16px;
}

/***************************************************************************************************notification Css ***********************/
.notify-alert button:not(.close) {
    position: absolute;
    bottom: -30px;
    right: 0;
}

.text-black {
    color: #212529;
}

/**************************************************************************************************************************/
.input-group-text {
    border: 1px solid #ced4da;
    border-radius: 0px;
}

.select2-container--default .select2-selection--single {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0px;
}

.has-success .select2-selection--single {
    border: 1px solid #28a745;
}

.has-warning .select2-selection--single {
    border: 1px solid #c23321;
}

.custom-file-label {
    border: 1px solid #ced4da;
    border-radius: 0px;
}

.custom-file-label::after {
    height: calc(1.5em + 0.83rem);
}

.datatable-option-btn i {
    margin: 0px !important;
}

.datatable-option-btn {
    margin-right: 10px;
}

.datatable-option-btn:last-child {
    margin-right: 0px;
}

.dataTable tbody tr td:first-child {
    text-align: center;
    min-width: 125px !important;
}

.dataTable thead tr th:first-child {
    width: 100px;
    text-align: center;
}

.page-error h1 {
    margin: 10px;
    color: #dc3545;
    font-size: 37px;
}

.btn .icon,
.btn .fa {
    font-size: 12px;
}

.dataTables_processing.card {
    background-color: #fff0;
    border: 0px;
}

td .btn .icon,
td .btn .fa {
    font-size: 13px;
}

td .btn-sm,
td .btn-group-sm > .btn {
    padding: 0px 4px;
}

.table th,
.table td {
    padding: 6px;
}

table.table-bordered.dataTable th:last-child,
table.table-bordered.dataTable th {
    border-right-width: 1px;
    border-left-width: 1px;
    border-bottom-width: 1px;
}

.table .thead-dark th {
    color: #fff;
    background-color: var(--my-primary-color);
    border-color: var(--my-seventh-color);
}

.logo img {
    width: 110px;
}

/* ===================================================================
   REUSABLE TABLE COMPONENTS - Action Buttons & Enhanced Design
   =================================================================== */

/* Action Button Styles */
.action-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.action-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.action-btn i {
    margin-right: 5px;
}

/* Action Popover Styling */
.action-popover {
    max-width: 280px;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.action-popover .popover-body {
    padding: 8px;
    background: white;
    border-radius: 8px;
}

.action-link {
    display: block;
    padding: 8px 12px;
    color: #495057;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

.action-link:last-child {
    margin-bottom: 0;
}

.action-link:hover {
    background: #f8f9fa;
    color: #007bff;
    text-decoration: none;
}

.action-link i {
    width: 16px;
    margin-right: 8px;
    text-align: center;
}

/* Status-specific action links */
.action-link.view-link {
    color: #17a2b8;
}

.action-link.view-link:hover {
    background: #e7f3ff;
    color: #0056b3;
}

.action-link.history-link {
    color: #28a745;
}

.action-link.history-link:hover {
    background: #e8f5e8;
    color: #1e7e34;
}

.action-link.response-link {
    color: #ffc107;
}

.action-link.response-link:hover {
    background: #fff3cd;
    color: #856404;
}

/* Enhanced Table Row Hover */
.table-row-hover {
    background-color: #f8f9fa !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Table Animation Classes */
.fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Status Badges */
.status-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
}

.status-badge i {
    font-size: 8px;
}

.status-badge.status-pending {
    background: #6c757d;
    color: white;
}

.status-badge.status-submitted {
    background: #17a2b8;
    color: white;
}

.status-badge.status-under-review {
    background: #ffc107;
    color: #212529;
}

.status-badge.status-completed {
    background: #28a745;
    color: white;
}

.status-badge.status-rejected {
    background: #dc3545;
    color: white;
}

/* Tile Head Enhancements */
.tile-head {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 20px;
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 0;
}

.tile-title {
    margin: 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tile-title i {
    color: var(--my-primary-color, #007bff);
}

/* Enhanced Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* App Title Enhancements */
.app-title {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.app-title h1 {
    margin-bottom: 5px;
    color: #495057;
}

.app-title p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

/* Bootstrap Dropdown Enhancements */
.dropdown-menu {
    border: none !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px !important;
    padding: 8px 0 !important;
    min-width: 180px !important;
    z-index: 1050 !important;
    position: absolute !important;
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
}

.dropdown-item {
    padding: 10px 16px !important;
    color: var(--my-sixth-color) !important;
    transition: all 0.2s ease !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.dropdown-item:hover {
    background: var(--my-third-color) !important;
    color: var(--my-primary-color) !important;
}

.dropdown-item i {
    width: 16px !important;
    margin-right: 0 !important;
    text-align: center !important;
    font-size: 14px !important;
    color: inherit !important;
}

/* Settings Menu Specific Styling */
.settings-menu {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.settings-menu .dropdown-item {
    padding: 12px 16px !important;
    font-weight: 500 !important;
}

.settings-menu .dropdown-item:hover {
    background: var(--my-third-color) !important;
    color: var(--my-primary-color) !important;
}

/* Three Dots Action Button */
.btn.text-nowrap {
    color: #6c757d !important;
    border: none;
    background: none;
    padding: 6px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn.text-nowrap:hover {
    color: #495057 !important;
    background-color: #f8f9fa;
    text-decoration: none;
}

.btn.text-nowrap:focus {
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    text-decoration: none;
}

.btn.text-nowrap .fa-ellipsis-v {
    font-size: 16px;
    font-weight: bold;
}

/* Popover Styling */
.popover {
    z-index: 9999 !important;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.popover-body {
    padding: 8px 0;
}

.popover .dropdown-item {
    display: block;
    padding: 8px 16px;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.popover .dropdown-item:hover {
    background: #f8f9fa;
    color: #007bff;
    text-decoration: none;
}

.popover .dropdown-item i {
    width: 16px;
    margin-right: 8px;
    text-align: center;
    font-size: 13px;
}

/* Dropdown positioning */
.dropdown-menu-right {
    right: 0;
    left: auto;
}

/* Ensure dropdown container has proper positioning */
.dropdown {
    position: relative;
}

/* Fix table overflow issues with dropdowns */
.table-responsive {
    overflow: visible !important;
}

.tile-body {
    overflow: visible !important;
}

/* Ensure table cells with dropdowns don't clip */
.table td:last-child {
    overflow: visible !important;
}

.table {
    overflow: visible !important;
}

/* Additional z-index fix for table context */
.table .dropdown.show .dropdown-menu {
    z-index: 9999 !important;
    position: fixed !important;
}

/* Empty State Styling */
.text-center.py-5 {
    padding: 3rem 1rem;
}

.text-center.py-5 .fa-3x {
    font-size: 3em;
    margin-bottom: 1rem;
}

/* Pagination Styling */
.pagination {
    margin: 0;
}

.page-link {
    color: #495057;
    border: 1px solid #dee2e6;
    padding: 8px 12px;
}

.page-link:hover {
    color: #007bff;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.page-item.active .page-link {
    background-color: var(--my-primary-color, #007bff);
    border-color: var(--my-primary-color, #007bff);
}

/* ===================================================================
   MANAGER INFORMATION CARD - Enhanced Design (Reusable Component)
   =================================================================== */
.manager-info-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    overflow: hidden;
    border: 1px solid #e3e6f0;
    transition: all 0.3s ease;
}

.manager-info-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.manager-header {
    background: linear-gradient(
        135deg,
        var(--my-primary-color) 0%,
        var(--btn-primary-hover) 100%
    ) !important;
    color: white !important;
    padding: 20px 25px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.manager-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.manager-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.manager-body {
    padding: 30px 25px;
}

.manager-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.manager-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e3e6f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.manager-photo:hover {
    transform: scale(1.05);
    border-color: var(--my-primary-color);
}

.manager-status-dot {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #1cc88a;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.manager-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.manager-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: #f8f9fc;
    border-radius: 10px;
    border-left: 4px solid var(--my-primary-color);
    transition: all 0.3s ease;
}

.manager-info-item:hover {
    background: #eef2ff;
    transform: translateX(5px);
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--my-primary-color);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.info-label {
    font-size: 12px;
    color: #858796;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 15px;
    color: #2c3e50;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .action-btn {
        padding: 4px 8px;
        font-size: 12px;
    }

    .action-popover {
        max-width: 250px;
    }

    .app-title {
        padding: 15px;
    }

    .tile-head {
        padding: 12px 15px;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }

    .table-responsive {
        font-size: 14px;
    }

    .status-badge {
        font-size: 10px;
        padding: 4px 8px;
    }

    /* Manager Card Responsive */
    .manager-body {
        padding: 20px 15px;
    }

    .manager-header {
        padding: 15px 20px;
    }

    .manager-photo {
        width: 100px;
        height: 100px;
    }

    .manager-info-item {
        padding: 10px;
        gap: 12px;
    }

    .info-icon {
        width: 35px;
        height: 35px;
        font-size: 13px;
    }

    /* Self Assessment Responsive */
    .question-card {
        margin-bottom: 15px;
    }

    .rating-card {
        margin-bottom: 15px;
    }

    .ratings-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ===================================================================
   SELF ASSESSMENT SECTION - Enhanced Design (Reusable Component)
   =================================================================== */
.self-assessment-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    overflow: hidden;
    border: 1px solid #e3e6f0;
}

.self-assessment-header {
    background: linear-gradient(
        135deg,
        var(--success-color) 0%,
        #059669 100%
    ) !important;
    color: white !important;
    padding: 25px 30px !important;
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    border-radius: 12px 12px 0 0 !important;
}

.assessment-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.assessment-title-section {
    flex: 1;
}

.assessment-title {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 700;
}

.assessment-subtitle {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    font-weight: 400;
}

.self-assessment-body {
    padding: 30px;
}

.assessment-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fc;
}

.section-icon {
    background: #6c757d;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.section-title h6 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.section-subtitle {
    font-size: 13px;
    color: #6c757d;
    margin: 2px 0 0 0;
}

/* Question Cards */
.assessment-questions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-card {
    background: #ffffff;
    border: 1px solid #e3e6f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.question-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.question-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
}

.question-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
}

.question-icon-success {
    background: #28a745;
}
.question-icon-warning {
    background: #ffc107;
    color: #212529;
}
.question-icon-info {
    background: #17a2b8;
}
.question-icon-primary {
    background: #007bff;
}
.question-icon-danger {
    background: #dc3545;
}
.question-icon-secondary {
    background: #6c757d;
}
.question-icon-dark {
    background: #343a40;
}

.question-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
    line-height: 1.4;
    margin-bottom: 5px;
}

.question-number {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.question-textarea-label {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
}

.question-body {
    padding: 20px;
}

.question-textarea-section {
    margin-bottom: 20px;
}

.assessment-textarea {
    border: 1px solid #e3e6f0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 100px;
}

.assessment-textarea:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.question-rating-section {
    background: #f8f9fc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e3e6f0;
}

.question-rating-label {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
}

.question-rating-select {
    border: 1px solid #e3e6f0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    transition: all 0.3s ease;
    width: 100%;
    background: white;
}

.question-rating-select:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

/* Star Rating System */
.star-rating-container {
    text-align: center;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e3e6f0;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.star {
    cursor: pointer;
    font-size: 24px;
    color: #dee2e6;
    transition: all 0.3s ease;
    position: relative;
}

.star:hover {
    transform: scale(1.2);
    color: #ffc107;
}

.star.active {
    color: #ffc107;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.star.active:hover {
    color: #ff9800;
}

.star i {
    pointer-events: none;
}

.rating-text {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.current-rating {
    font-weight: 600;
    color: #2c3e50;
}

.rating-scale {
    color: #6c757d;
    font-weight: 500;
}

/* Rating descriptions */
.rating-description {
    margin-top: 8px;
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

/* Different star colors based on rating */
.star-rating-container[data-current-rating="1"] .star.active {
    color: #dc3545;
}

.star-rating-container[data-current-rating="2"] .star.active {
    color: #fd7e14;
}

.star-rating-container[data-current-rating="3"] .star.active {
    color: #ffc107;
}

.star-rating-container[data-current-rating="4"] .star.active {
    color: #20c997;
}

.star-rating-container[data-current-rating="5"] .star.active {
    color: #28a745;
}

.star-rating-container[data-current-rating="6"] .star.active {
    color: #6f42c1;
}

/* Hover effect for better UX */
.star-rating:hover .star {
    color: #dee2e6;
}

.star-rating .star:hover,
.star-rating .star:hover ~ .star {
    color: #dee2e6;
}

.star-rating .star:hover {
    color: #ffc107;
}

.star-rating .star:hover ~ .star {
    color: #dee2e6;
}

/* Animation for star selection */
@keyframes starPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.star.just-selected {
    animation: starPulse 0.3s ease;
}

/* Error state for star rating */
.star-rating-container.error {
    border-color: #dc3545;
    background: #fff5f5;
}

.star-rating-container.error .star {
    color: #dc3545;
    opacity: 0.7;
}

/* Enhanced hover effects for different star counts */
.star-rating .star:nth-child(1):hover {
    color: #dc3545;
}

.star-rating .star:nth-child(2):hover {
    color: #fd7e14;
}

.star-rating .star:nth-child(3):hover {
    color: #ffc107;
}

.star-rating .star:nth-child(4):hover {
    color: #20c997;
}

.star-rating .star:nth-child(5):hover {
    color: #28a745;
}

.star-rating .star:nth-child(6):hover {
    color: #6f42c1;
}

/* Quarter Evaluation Cards */
.quarters-overview {
    margin-top: 20px;
}

.quarter-evaluation-card {
    background: #ffffff;
    border: 2px solid #e3e6f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.quarter-evaluation-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.quarter-evaluation-card.available {
    border-color: #28a745;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.1);
}

.quarter-evaluation-card.completed {
    border-color: #17a2b8;
    box-shadow: 0 2px 10px rgba(23, 162, 184, 0.1);
}

.quarter-evaluation-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f8f9fa;
}

.quarter-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
}

.quarter-evaluation-card.available .quarter-card-header {
    background: #d4edda;
}

.quarter-evaluation-card.completed .quarter-card-header {
    background: #d1ecf1;
}

.quarter-evaluation-card.disabled .quarter-card-header {
    background: #e9ecef;
}

.quarter-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    background: #6c757d;
}

.quarter-evaluation-card.available .quarter-icon {
    background: #28a745;
}

.quarter-evaluation-card.completed .quarter-icon {
    background: #17a2b8;
}

.quarter-evaluation-card.disabled .quarter-icon {
    background: #adb5bd;
}

.quarter-title h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.quarter-period {
    font-size: 12px;
    color: #6c757d;
    margin: 0;
}

.quarter-card-body {
    padding: 15px 20px;
}

.quarter-dates {
    font-size: 13px;
    color: #495057;
    margin-bottom: 10px;
    font-weight: 500;
}

.quarter-status-badge {
    margin-bottom: 10px;
}

.quarter-actions {
    padding: 0 20px 15px 20px;
}

.quarter-radio-input {
    display: none;
}

.quarter-select-btn {
    width: 100%;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.quarter-select-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.view-responses-btn {
    width: 100%;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-responses-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

/* Quarter Selection Enhancement */
.quarter-radio-input:checked + .quarter-select-btn {
    background: #28a745;
    border-color: #28a745;
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

/* Modal for viewing responses */
.responses-modal .modal-dialog {
    max-width: 800px;
}

.response-item {
    background: #f8f9fc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #17a2b8;
}

.response-question {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 15px;
}

.response-text {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 10px;
}

.response-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.response-stars {
    display: flex;
    gap: 3px;
}

.response-stars .fa-star {
    font-size: 14px;
}

.response-stars .star-filled {
    color: #ffc107;
}

.response-stars .star-empty {
    color: #dee2e6;
}

.question-number {
    font-weight: 700;
    color: #6f42c1;
    margin-right: 8px;
}

/* Rating Cards */
.ratings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.rating-card {
    background: #ffffff;
    border: 1px solid #e3e6f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.rating-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.rating-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
}

.rating-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
}

.rating-icon-primary {
    background: #007bff;
}
.rating-icon-info {
    background: #17a2b8;
}
.rating-icon-success {
    background: #28a745;
}
.rating-icon-warning {
    background: #ffc107;
    color: #212529;
}
.rating-icon-secondary {
    background: #6c757d;
}
.rating-icon-danger {
    background: #dc3545;
}
.rating-icon-dark {
    background: #343a40;
}

.rating-label {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
}

.rating-body {
    padding: 20px;
}

.rating-select {
    border: 1px solid #e3e6f0;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.rating-select:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Submit Section */
.assessment-submit {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fc;
    border-radius: 12px;
    margin-top: 30px;
}

.assessment-submit-btn {
    background: #28a745;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.assessment-submit-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.assessment-submit-btn i {
    margin-right: 8px;
    font-size: 18px;
}

.submit-info {
    margin-top: 15px;
    color: #6c757d;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-info i {
    color: #28a745;
}

/* Department-Specific Questions */
.department-questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.department-question-card {
    background: #ffffff;
    border: 1px solid #e3e6f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.department-question-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.department-question-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
}

.department-question-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    background: #6f42c1;
    flex-shrink: 0;
}

.department-question-content {
    flex: 1;
}

.department-question-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    margin-bottom: 5px;
}

.department-question-number {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.department-question-body {
    padding: 20px;
}

.rating-section {
    margin-bottom: 15px;
}

.rating-section .rating-label {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
}

.department-rating-select {
    border: 1px solid #e3e6f0;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
}

.department-rating-select:focus {
    border-color: #6f42c1;
    box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.1);
}

.expected-rating {
    padding: 10px 12px;
    background: #e8f4fd;
    border-radius: 6px;
    border-left: 3px solid #17a2b8;
}

.expected-rating small {
    font-size: 12px;
    color: #0c5460;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive Design for Department Questions */
@media (max-width: 768px) {
    .department-questions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .department-question-header {
        padding: 15px;
        gap: 12px;
    }

    .department-question-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .department-question-body {
        padding: 15px;
    }
}
