/*
Template Name: Velzon - Admin & Dashboard Template
Author: Themesbrand
Website: https://themesbrand.com/
Contact: support@themesbrand.com
File: Custom Css File
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

body {
    background-color: #f8f9fa;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.auth-page-wrapper {
    height: 100vh;
    width: 100vw;
    display: flex;
}

/* Left Panel */
.login-side-bg {
    flex: 0 0 58%;
    background-image: url('../../images/login_side.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    text-align: center;
    padding: 60px;
}

/* Subtle overlay if image is too bright, but screenshot looks clear */
.login-side-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
}

.login-side-content {
    position: relative;
    z-index: 2;
    max-width: 80%;
}

.login-side-logo {
    width: 140px;
    margin-bottom: 40px;
}

.login-side-title {
    font-size: 72px;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.login-side-subtitle {
    font-size: 22px;
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

/* Right Panel */
.login-main-bg {
    flex: 0 0 42%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8%;
    position: relative;
}

.login-form-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.login-header {
    text-align: center;
    margin-bottom: 45px;
}

.login-header h2 {
    color: #3e4b7a;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-header p {
    color: #adb5bd;
    font-size: 15px;
    margin-bottom: 0;
}

.auth-page-wrapper .form-group {
    margin-bottom: 24px;
}

.auth-page-wrapper .form-label {
    font-weight: 600;
    color: #333333;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.auth-page-wrapper .form-control {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 14px 16px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    color: #495057;
    transition: border-color 0.2s ease;
}

.auth-page-wrapper .form-control::placeholder {
    color: #adb5bd;
}

.auth-page-wrapper .form-control:focus {
    border-color: #00b59c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 181, 156, 0.1);
}

.password-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.forgot-password {
    font-size: 13px;
    color: #adb5bd;
    text-decoration: none;
}

.forgot-password:hover {
    color: #00b59c;
}

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

.password-addon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #adb5bd;
    cursor: pointer;
    padding: 0;
    font-size: 18px;
}

.auth-page-wrapper .form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.auth-page-wrapper .form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.auth-page-wrapper .form-check-label {
    color: #adb5bd;
    font-size: 14px;
    cursor: pointer;
}

.btn-signin {
    background-color: #00b59c;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: center;
}

.btn-signin:hover {
    background-color: #00a08a;
}

.login-footer {
    text-align: center;
    margin-top: 60px;
    color: #adb5bd;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 1200px) {
    .login-side-title {
        font-size: 56px;
    }
}

@media (max-width: 991px) {
    .login-side-bg {
        display: none;
    }

    .login-main-bg {
        flex: 0 0 100%;
        padding: 40px 20px;
    }
}

/* ==========================================================================
   HRMS ECOSYSTEM - CORE STYLING
   ========================================================================== */

/* 1. Common Configuration Header */
.config-header {
    background: linear-gradient(to right, #4c7ee3, #6691e7);
    color: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(64, 81, 137, 0.2);
}

/* 2. FullCalendar Integration & Customization */
#calendar {
    min-height: 650px;
    background: #fff;
    border-radius: 12px;
}

.fc .fc-toolbar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #495057;
}

.fc .fc-button-primary {
    background-color: #fff;
    border-color: #e9ebec;
    color: #405189;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.2s;
}

.fc .fc-button-primary:hover {
    background-color: #f3f6f9;
    color: #405189;
    border-color: #e9ebec;
}

.fc .fc-button-active {
    background-color: #405189 !important;
    border-color: #405189 !important;
    color: #fff !important;
}

.fc-theme-standard td,
.fc-theme-standard th {
    border-color: #f3f3f9;
}

.fc-day-today {
    background: rgba(64, 81, 137, 0.03) !important;
}

/* 3. Professional Event Badges (Holiday & Overrides) */
.fc-event {
    border: none !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
    margin: 2px 5px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    display: flex !important;
    align-items: center;
    border-left: 4px solid transparent !important;
    overflow: hidden;
}

.fc-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.fc-event-title {
    font-size: 11px !important;
    font-weight: 700 !important;
}

.fc-event::before {
    content: "•";
    margin-right: 6px;
    font-size: 18px;
    line-height: 0;
    margin-top: -2px;
}

/* Type Specifics - High Contrast */
.holiday-national,
.exception-working {
    border-left-color: #0ab39c !important;
    background-color: #e6fcf5 !important;
}

.holiday-national .fc-event-title,
.exception-working .fc-event-title,
.holiday-national::before,
.exception-working::before {
    color: #088a78 !important;
}

.holiday-festival {
    border-left-color: #405189 !important;
    background-color: #f0f3ff !important;
}

.holiday-festival .fc-event-title,
.holiday-festival::before {
    color: #2d3961 !important;
}

.holiday-optional {
    border-left-color: #f7b84b !important;
    background-color: #fff9e6 !important;
}

.holiday-optional .fc-event-title,
.holiday-optional::before {
    color: #a67623 !important;
}

.holiday-company,
.exception-off {
    border-left-color: #3577f1 !important;
    background-color: #ecf2ff !important;
}

.holiday-company .fc-event-title,
.exception-off .fc-event-title,
.holiday-company::before,
.exception-off::before {
    color: #214db3 !important;
}

/* Special: Background events for Weekly Offs */
.default-off {
    background-color: #f8f9fa !important;
    border-color: #f3f3f9 !important;
    color: #adb5bd !important;
    border-left: 3px solid #f06548 !important;
    opacity: 0.7;
}

/* 4. Working Days Configuration Cards */
.day-card {
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e9ebec;
    position: relative;
    background: #fff;
}

.day-card.status-working {
    border-left: 5px solid #0ab39c;
}

.day-card.status-off {
    border-left: 5px solid #f06548;
    background: #fef8f7;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

/* 5. Modern Nav Pills */
.nav-pills-custom .nav-link {
    border-radius: 10px;
    padding: 12px 25px;
    font-weight: 600;
    color: #405189;
    background: #f3f6f9;
    margin-right: 10px;
    transition: all 0.2s;
}

.nav-pills-custom .nav-link.active {
    background: #6691e7;
    color: #fff;
    box-shadow: 0 4px 10px rgba(64, 81, 137, 0.2);
}

/* 6. Professional Tooltip (Glassmorphism) */
.holiday-tooltip {
    position: absolute;
    z-index: 10001;
    background: rgba(33, 37, 41, 0.95);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    display: none;
    min-width: 180px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 7. Date Icons & Insights */
.insight-card {
    border: none;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.insight-card:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.upcoming-holiday-item {
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.upcoming-holiday-item:hover {
    border-color: #e9ebec;
    background: #fff;
}

.date-icon {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.date-icon span:first-child {
    font-size: 9px;
    text-transform: uppercase;
    color: #f06548;
    font-weight: 700;
}

.date-icon span:last-child {
    font-size: 16px;
    font-weight: 800;
    color: #212529;
}

/* 8. DataTables Layout Spacing Fixes */

.dataTables_wrapper .dataTables_filter input {
    padding: 0.27rem 0.75rem !important;
    margin-bottom: 10px !important;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #0ab39c !important;
    box-shadow: 0 0 0 3px rgba(10, 179, 156, 0.1) !important;
}

div.dataTables_wrapper div.dataTables_length label {
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

div.dataTables_wrapper div.dataTables_length select {
    border: 1px solid #e9ecef !important;
    border-radius: 0.25rem !important;
    padding: 0.27rem 1.5rem 0.27rem 0.5rem !important;
    font-size: 0.8125rem !important;
}

.choices__list--dropdown .choices__list {
    margin: 0 !important;
}

/* 9. Offcanvas Drawer Custom Sizes */

#globalDrawer {
    width: calc(100vw - 250px) !important;
    max-width: none !important;
}

[data-sidebar-size="sm"] #globalDrawer,
[data-sidebar-size="sm-hover"] #globalDrawer {
    width: calc(100vw - 70px) !important;
}

/* On mobile the sidebar is hidden — drawer must be full width */
@media (max-width: 767.98px) {
    #globalDrawer,
    [data-sidebar-size="sm"] #globalDrawer,
    [data-sidebar-size="sm-hover"] #globalDrawer {
        width: 100vw !important;
    }
}

/* 10. Global Drawer — Form Content Cleanup
   Forms loaded inside the drawer come from full-page views.
   We suppress layout-level decorations so they render as flat forms. */

/* Hide page-title breadcrumb inside drawer */
#drawerContentBody .page-title-box,
#drawerContentBody .page-title-right,
#drawerContentBody .breadcrumb {
    display: none !important;
}


/* Full-width selects / inputs */
#drawerContentBody .form-control,
#drawerContentBody .form-select {
    width: 100% !important;
}

/* Submit button area */
#drawerContentBody .text-start,
#drawerContentBody .text-end {
    margin-top: 1.25rem;
}

#drawerContentBody {
    min-height: 100%;
    overflow-y: auto;
}

#drawerContentBody .card {
    background: #fff !important;
    border: 1px solid #e9ebec !important;
    box-shadow: var(--vz-box-shadow) !important;
}

#drawerContentBody .card-header {
    background: #fff !important;
}

#drawerContentBody .card-body {
    background: #fff !important;
}

/* DataTable search controls that may leak into drawer — hide them */
#drawerContentBody .dataTables_wrapper .dataTables_filter,
#drawerContentBody .dataTables_wrapper .dataTables_length,
#drawerContentBody .dataTables_wrapper .dataTables_info,
#drawerContentBody .dataTables_wrapper .dataTables_paginate {
    display: none !important;
}

/* Choices.js dropdown inside drawer — ensure it layers above offcanvas */
#drawerContentBody .choices__list--dropdown {
    z-index: 9999 !important;
}

/* Drawer backdrop keeps pointer events on the close button */
#globalDrawer .offcanvas-header .btn {
    z-index: 1;
    flex-shrink: 0;
}

/* ==========================================================================
   CHOICES.JS PERFECT ALIGNMENT & HEIGHT MATCHING WITH FORM-CONTROL INPUTS
   ========================================================================== */

/* 1. Reset outer Choices container when it inherits .form-select or .form-control classes from <select> */
div.choices.form-select,
div.choices.form-control,
div.choices,
.choices {
    padding: 0 !important;
    background-image: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
    position: relative;
    width: 100% !important;
    min-height: 38px !important;
    display: block !important;
}

div.choices[data-type*="select-one"],
.choices[data-type*="select-one"] {
    height: 38px !important;
}

/* 2. Match exact height (38px), background, border, font-size and padding of .form-control / .form-select */
.choices[data-type*="select-one"] .choices__inner,
.choices__inner {
    min-height: 38px !important;
    height: 38px !important;
    max-height: 38px !important;
    padding: 0 0.75rem !important;
    background-color: var(--vz-input-bg-custom, #fff) !important;
    border: 1px solid var(--vz-input-border-custom, #ced4da) !important;
    border-radius: var(--vz-border-radius, 0.25rem) !important;
    font-size: 0.8125rem !important;
    line-height: 36px !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* 3. Vertically center text inside single select */
.choices[data-type*="select-one"] .choices__list--single {
    padding: 0 1.5rem 0 0 !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.choices[data-type*="select-one"] .choices__item {
    font-size: 0.8125rem !important;
    color: var(--vz-body-color, #495057) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.5 !important;
}

.choices[data-type*="select-one"] .choices__placeholder {
    color: #878a99 !important;
    opacity: 0.85 !important;
}

/* 4. Fix dropdown arrow positioning & single arrow appearance */
.choices[data-type*="select-one"]::after {
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
    border-color: #495057 transparent transparent transparent !important;
    border-width: 5px 5px 0 5px !important;
    pointer-events: none !important;
}

.choices[data-type*="select-one"].is-open::after {
    margin-top: 0 !important;
    transform: translateY(-50%) rotate(180deg) !important;
}

/* 5. Multiselect height alignment */
.choices[data-type*="select-multiple"] {
    height: auto !important;
    min-height: 38px !important;
}

.choices[data-type*="select-multiple"] .choices__inner {
    min-height: 38px !important;
    height: auto !important;
    max-height: none !important;
    padding: 0.2rem 0.5rem !important;
    background-color: var(--vz-input-bg-custom, #fff) !important;
    border: 1px solid var(--vz-input-border-custom, #ced4da) !important;
    border-radius: var(--vz-border-radius, 0.25rem) !important;
}

/* 6. Focus state */
.is-focused .choices__inner,
.is-open .choices__inner {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15) !important;
}

/* 7. Multi-line Text Clamping Utility */
.line-clamp-2 {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    word-break: break-word !important;
    white-space: normal !important;
}