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

:root {
    color-scheme: light;
    --hr-page-bg-start: #eef7ff;
    --hr-page-bg-mid: #e7f2ff;
    --hr-page-bg-end: #dceeff;
    --hr-page-bg-accent-1: rgba(116, 177, 255, 0.24);
    --hr-page-bg-accent-2: rgba(255, 227, 168, 0.2);
    --hr-panel-fade-overlay: linear-gradient(to bottom, rgba(238, 247, 255, 0), rgba(238, 247, 255, 0.94));
    --hr-theme-toggle-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.12);
}

html[data-theme='dark'] {
    color-scheme: dark;
    --hr-page-bg-start: #0e1a2b;
    --hr-page-bg-mid: #112238;
    --hr-page-bg-end: #132c47;
    --hr-page-bg-accent-1: rgba(76, 159, 255, 0.2);
    --hr-page-bg-accent-2: rgba(43, 114, 181, 0.18);
    --hr-panel-fade-overlay: linear-gradient(to bottom, rgba(17, 34, 56, 0), rgba(17, 34, 56, 0.94));
    --hr-theme-toggle-shadow: 0 0.25rem 0.75rem rgba(2, 8, 20, 0.35);
}

html,
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100%;
    background-image:
        radial-gradient(72rem 52rem at 12% 10%, var(--hr-page-bg-accent-1) 0%, transparent 62%),
        radial-gradient(66rem 48rem at 88% 85%, var(--hr-page-bg-accent-2) 0%, transparent 60%),
        linear-gradient(180deg, var(--hr-page-bg-start) 0%, var(--hr-page-bg-mid) 55%, var(--hr-page-bg-end) 100%);
    background-size: 175% 175%, 170% 170%, 100% 100%;
    background-position: 0% 0%, 100% 100%, 50% 50%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    animation: hr-bg-gradient-shift 20s ease-in-out infinite alternate;
}

@keyframes hr-bg-gradient-shift {
    0% {
        background-position: 0% 0%, 100% 100%, 50% 50%;
    }

    50% {
        background-position: 25% 18%, 75% 82%, 50% 50%;
    }

    100% {
        background-position: 42% 30%, 58% 70%, 50% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    body {
        animation: none;
    }
}

.hr-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    outline: none;
}

.hr-theme-toggle:hover,
.hr-theme-toggle:focus,
.hr-theme-toggle:active {
    background: transparent !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.hr-theme-toggle .material-icons {
    font-size: 1.15rem;
    line-height: 1;
    transition: color 0.18s;
}

.hr-theme-toggle:hover .material-icons,
.hr-theme-toggle:focus .material-icons {
    color: #1976d2;
}

.hr-navbar-meta {
    margin-top: 0.5rem;
}

.hr-navbar-meta .navbar-text {
    white-space: nowrap;
}

.hr-back-icon-btn,
.hr-plus-icon-btn,
.btn-sm.hr-plus-icon-btn {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hr-back-icon-btn .material-icons,
.hr-plus-icon-btn .material-icons {
    font-size: 1.25rem;
    line-height: 1;
    vertical-align: middle;
}

.hr-employee-page .card-title,
.hr-employee-page h2.h5 {
    line-height: 1.2;
}

.hr-employee-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hr-employee-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hr-panel-collapsible.is-collapsible:not(.is-expanded) {
    max-height: 17rem;
    overflow: hidden;
    position: relative;
}

.hr-panel-collapsible.is-collapsible:not(.is-expanded)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.75rem;
    pointer-events: none;
    background: var(--hr-panel-fade-overlay);
}

.hr-panel-toggle-wrap {
    margin-top: 0.5rem;
}

.hr-panel-toggle {
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.hr-panel-toggle:hover,
.hr-panel-toggle:focus {
    text-decoration: underline;
}

.hr-employee-group {
    border: 0;
    border-radius: 0.5rem;
    padding: 0.7rem;
    background-color: var(--bs-secondary-bg-subtle);
}

.hr-employee-group-title {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.hr-employee-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.hr-compact-item {
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: 0.375rem;
    padding: 0.375rem 0.5rem;
    background-color: var(--bs-body-bg);
}

.hr-compact-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
    line-height: 1.1;
}

.hr-compact-value {
    margin-top: 0.15rem;
    font-size: 0.9rem;
    line-height: 1.25;
    word-break: break-word;
}

.hr-compact-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hr-compact-list .list-group-item {
    border: 0;
    border-radius: 0.5rem;
    background-color: var(--bs-light-bg-subtle);
    padding: 0.5rem 0.65rem;
}

.hr-compact-list .list-group-item .fw-semibold {
    font-size: 0.9rem;
    line-height: 1.2;
}

.hr-compact-list .list-group-item .small {
    margin-top: 0.125rem;
    line-height: 1.25;
}

.hr-modal-employee-form .modal-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hr-modal-group {
    padding: 0.75rem;
}

.hr-modal-group .row {
    --bs-gutter-x: 0.65rem;
    --bs-gutter-y: 0.5rem;
}

.hr-modal-group .row + .row {
    margin-top: 0;
}

.hr-modal-group .form-label {
    margin-bottom: 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.hr-modal-group .form-label.hr-required-now {
    color: var(--bs-danger-text-emphasis);
}

.hr-modal-group .form-label.hr-required-now::after {
    content: ' *';
    color: var(--bs-danger);
    font-weight: 700;
}

.hr-modal-group .form-control,
.hr-modal-group .form-select,
.hr-modal-group textarea.form-control {
    border-color: var(--bs-border-color-translucent);
    background-color: var(--bs-body-bg);
    border-radius: 0.375rem;
}

.hr-modal-group .form-check {
    min-height: 2.1rem;
    padding-top: 0.2rem;
}

.hr-modal-group .form-check .form-check-label {
    font-size: 0.9rem;
}

@media (max-width: 767.98px) {
    .hr-navbar-user {
        display: none;
    }

    .hr-navbar-meta {
        justify-content: flex-start;
    }

    .hr-employee-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (min-width: 992px) {
    .hr-navbar-meta {
        margin-top: 0;
    }
}