﻿#main-wrapper {
    position: relative;
    background-color: #f6f9fb;
}

.bg-white {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-white-rgb), var(--bs-bg-opacity)) !important;
}

.auth-login {
    background: #f2f6fa;
}

    .auth-login .auth-login-wrapper {
        margin: 77px auto 77px auto !important;
        box-shadow: 0 2px 30px 15px rgba(37, 83, 185, .1);
    }

.simplebar-mask {
    direction: inherit;
    position: absolute;
    overflow: hidden;
    padding: 0;
    margin: 0;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    width: auto !important;
    height: auto !important;
    z-index: 0;
}

.simplebar-content-wrapper {
    direction: inherit;
    box-sizing: border-box !important;
    position: relative;
    display: block;
    height: 100%;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.form-control {
    border-color: #c4c9d5;
}

.col-form-label {
    color: #494f56 !important;
}
.form-label {
    color: #494f56 !important;
}
#main-wrapper[data-layout=vertical][data-sidebar-position=fixed] .left-sidebar {
    top: 0px;
}
.body-wrapper .container-fluid, .body-wrapper .container-sm, .body-wrapper .container-md, .body-wrapper .container-lg, .body-wrapper .container-xl, .body-wrapper .container-xxl {
    padding-top: 10px;
}
    .app-header_x {

    z-index: 10;
    width: 100%;
    background: #fff;
    padding: 0 10px;
    margin-bottom: 24px;
    border-radius: 18px;
}

/*Menu Style >>>>>*/

.nav-small-cap {
    margin-top: 0px;
}
.sidebar-nav ul .sidebar-item .sidebar-link {
    padding-top: 4px;
}

/*Dashboard Style >>>>>*/

.gradient-text {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.gradient-text {
    background-size: 200% auto;
    animation: gradient-shift 10s ease infinite;
}
.app-header_x {
    background: #3bb3e46b;
}

/*Table Style >>>>>*/

.rounded-circle-row {
    border-radius: 50% !important;
}

.hrms-table tbody tr:nth-child(odd) > td {
    background-color: #f3f4f6;
}

.hrms-table tbody tr:nth-child(even) > td {
    background-color: #ffffff;
}

.hrms-table tbody tr:hover > td {
    background-color: #e6f0ff !important;
}

.hrms-table tbody tr > td {
    transition: background-color 0.15s ease-in-out;
}

.sort-header-btn {
    color: inherit;
    text-decoration: none;
    vertical-align: middle;
}

/* Profile dropdown — shared by MainLayout & AdminLayout */
.profile-dd-menu {
    --profile-dd-navy: #1a2d42;
    --profile-dd-muted: #919ba7;
    --profile-dd-blue: #0388d1;

    min-width: 260px;
    max-width: 300px;
    padding: 10px 12px !important;
    font-size: 0.8125rem;
}

.profile-dd-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--profile-dd-navy);
    line-height: 1.25;
}

.profile-dd-meta,
.profile-dd-email {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--profile-dd-muted);
    line-height: 1.35;
}

.profile-dd-mail-icon {
    font-size: 0.875rem !important;
    flex-shrink: 0;
    opacity: 0.85;
}

.profile-dd-item-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--profile-dd-navy);
    line-height: 1.25;
}

.profile-dd-item-sub {
    font-size: 0.6875rem;
    font-weight: 400;
    color: var(--profile-dd-muted);
    line-height: 1.35;
    margin-top: 0.125rem;
}

.profile-dd-icon-btn {
    padding: 0.35rem 0.45rem !important;
    line-height: 1;
}

.profile-dd-menu-icon {
    font-size: 1rem !important;
}

.profile-dd-logout {
    border-radius: 999px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    padding-top: 0.45rem !important;
    padding-bottom: 0.45rem !important;
    background-color: var(--profile-dd-blue) !important;
    border-color: var(--profile-dd-blue) !important;
}

.profile-dd-logout:hover,
.profile-dd-logout:focus {
    background-color: #0278bd !important;
    border-color: #0278bd !important;
}

.profile-dd-menu .dropdown-item {
    font-size: inherit;
}

.profile-dd-menu .dropdown-item:hover,
.profile-dd-menu .dropdown-item:focus {
    background-color: rgba(26, 45, 66, 0.06);
}

/* HRMS modal popup (Leave Setup style) */
.hrms-modal-backdrop {
    background-color: rgba(0, 0, 0, 0.45) !important;
}

.hrms-modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
}

.hrms-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    background: #4fc3f7;
    border-bottom: none;
}

.hrms-modal-header .modal-title {
    margin: 0;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
}

.hrms-modal-header .btn-close {
    margin: 0;
    padding: 0.5rem;
    opacity: 1;
    filter: brightness(0) invert(1);
}

.hrms-modal-body {
    padding: 1.25rem 1.5rem 0.75rem;
    background: #fff;
}

.hrms-modal-body .col-form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #494f56 !important;
}

.hrms-modal-body .form-control,
.hrms-modal-body .form-select {
    border-radius: 8px;
    border-color: #c4c9d5;
    font-size: 0.875rem;
}

.hrms-modal-form-actions {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem 0 0.25rem;
}

.hrms-btn-save {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1.35rem;
    border: none;
    border-radius: 999px;
    background: #2196f3;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
}

.hrms-btn-save:hover:not(:disabled) {
    background: #1976d2;
    color: #fff;
}

.hrms-btn-save:disabled {
    opacity: 0.7;
}

.hrms-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 0.75rem 1.25rem 1rem;
    background: #fff;
    border-top: 1px solid #e9ecef;
}

.hrms-btn-close {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1.25rem;
    border: none;
    border-radius: 999px;
    background: #eceff3;
    color: #1f2937;
    font-size: 0.875rem;
    font-weight: 500;
}

.hrms-btn-close:hover:not(:disabled) {
    background: #dfe3ea;
    color: #111827;
}

.hrms-btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1.25rem;
    border: none;
    border-radius: 999px;
    background: #ef5350;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
}

.hrms-btn-danger:hover:not(:disabled) {
    background: #e53935;
    color: #fff;
}