


/**** Theme switcher *********/
:root {
    --c-bg: white; /*hsl(0, 0%, 100%);*/
    --c-text: black; /*hsl(0, 0%, 10%);*/
    --c-text-alt: hsl(0, 0%, 10%);
    --c-detail: hsl(0, 0%, 10%);
    --c-detail-alt: hsl(0, 0%, 49%);
    --f-size: 16px;
    --f-height: 22px;
    font-feature-settings: "tnum"1,"ss01"1,"ss03"1;
}

@media (prefers-color-scheme: dark) {
    :root {
        --c-bg: black; /*hsl(0,0%,5%);*/
        --c-text: white; /*hsl(0,0%,90%);*/
        --c-text-alt: hsl(0,0%,50%);
        --c-detail: hsl(0,0%,90%);
        --c-detail-alt: hsl(0,0%,95%);
    }
}


html.inverted {
    --c-bg: black /* hsl(0,0%,5%)*/;
    --c-text: white /* hsl(0,0%,90%);*/;
    --c-text-alt: hsl(0,0%,50%);
    --c-detail: hsl(0,0%,90%);
    --c-detail-alt: hsl(0, 0%, 65%);
}

@media (prefers-color-scheme: dark) {
    html.inverted {
        --c-bg: white /*hsl(0,0%,100%);*/;
        --c-text: black /*hsl(0,0%,10%);*/;
        --c-text-alt: hsl(0,0%,10%);
        --c-detail: hsl(0,0%,10%);
        --c-detail-alt: hsl(0,0%,90%)
    }
}

#themeToggle {
    cursor: pointer;
    text-indent: -9999px;
    width: 35px;
    height: 20px;
    background: var(--c-bg);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
    position: relative;
    border: 1.5px solid var(--c-text);
}

    #themeToggle:after {
        content: '';
        background: var(--c-text);
        width: 10px;
        height: 10px;
        border-radius: 50%;
        position: absolute;
        top: 4.4px;
        left: 4px;
        transition: cubic-bezier(0.68, -0.55, 0.27, 01.55) 320ms;
    }

html.inverted #themeToggle {
    background: var(--c-bg);
}

    html.inverted #themeToggle:after {
        left: calc(100% - 5px);
        transform: translateX(-100%);
    }

#themeToggle {
    background: var(--c-bg);
}

    #themeToggle:after {
        right: calc(100% + 5px);
        transform: translateX(0%);
    }

html.transition,
html.transition *,
html.transition *:before,
html.transition *:after {
    transition: cubic-bezier(0.68, -0.55, 0.27, 01.55) 420ms !important;
    transition-delay: 0 !important;
}

/* Your theme switcher styles */

body {
 
    background-color: var(--c-bg);
    color: var(--c-text);
}



html.inverted #themeToggle {
    background: var(--c-bg);
}

    html.inverted #themeToggle:after {
        background: var(--c-text);
    }
html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
.MyRow {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

/* ============================================================
   ADMIN AREA — HR Platform UI Styles
   ============================================================ */

/* Page header row */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

.page-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

/* Table improvements */
.table-card {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
    overflow: hidden;
}

.table-card .table {
    margin-bottom: 0;
}

.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
}

.table-toolbar .search-box {
    max-width: 280px;
}

.table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    font-weight: 600;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
}

/* Action buttons in tables */
.btn-actions {
    display: flex;
    gap: 0.3rem;
    flex-wrap: nowrap;
}

.btn-actions .btn {
    padding: 0.2rem 0.55rem;
    font-size: 0.8rem;
}

/* Status badges */
.badge-status-active      { background-color: #198754; color: #fff; }
.badge-status-onleave     { background-color: #0d6efd; color: #fff; }
.badge-status-terminated  { background-color: #6c757d; color: #fff; }
.badge-status-inmeeting   { background-color: #0dcaf0; color: #212529; }
.badge-status-onbreak     { background-color: #ffc107; color: #212529; }
.badge-status-training    { background-color: #6f42c1; color: #fff; }
.badge-status-offline     { background-color: #adb5bd; color: #212529; }
.badge-status-retired     { background-color: #343a40; color: #fff; }

.badge-req-pending  { background-color: #ffc107; color: #212529; }
.badge-req-approved { background-color: #198754; color: #fff; }
.badge-req-denied   { background-color: #dc3545; color: #fff; }
.badge-req-canceled { background-color: #6c757d; color: #fff; }

.badge-contract-permanent   { background-color: #0d6efd; color: #fff; }
.badge-contract-temporary   { background-color: #ffc107; color: #212529; }
.badge-contract-freelance   { background-color: #6f42c1; color: #fff; }
.badge-contract-parttime    { background-color: #0dcaf0; color: #212529; }
.badge-contract-internship  { background-color: #20c997; color: #fff; }
.badge-contract-other       { background-color: #6c757d; color: #fff; }

.badge-level-junior    { background-color: #0dcaf0; color: #212529; }
.badge-level-mid       { background-color: #0d6efd; color: #fff; }
.badge-level-senior    { background-color: #6f42c1; color: #fff; }
.badge-level-lead      { background-color: #fd7e14; color: #fff; }
.badge-level-manager   { background-color: #dc3545; color: #fff; }
.badge-level-director  { background-color: #343a40; color: #fff; }
.badge-level-executive { background-color: #212529; color: #fff; }

.badge-signed   { background-color: #198754; color: #fff; }
.badge-unsigned { background-color: #dc3545; color: #fff; }

.badge-active   { background-color: #198754; color: #fff; }
.badge-inactive { background-color: #6c757d; color: #fff; }

/* Employee avatar initials */
.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #0d6efd;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.avatar-sm { width: 28px; height: 28px; font-size: 0.65rem; }
.avatar-lg { width: 52px; height: 52px; font-size: 1rem; }

/* Employee name cell */
.emp-name-cell {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.35;
}

/* Detail cards */
.detail-card {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.detail-card .card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    margin-bottom: 0.15rem;
}

.detail-card .card-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: #212529;
}

/* Form section */
.form-section {
    margin-bottom: 2rem;
}

.form-section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c757d;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #dee2e6;
}

/* Day chips for work schedules */
.day-chip {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: #e9ecef;
    color: #495057;
    margin-right: 0.2rem;
}

.day-chip.active {
    background: #0d6efd;
    color: #fff;
}

/* OrgChart */
.org-node {
    border: 1px solid #dee2e6;
    border-radius: 0.4rem;
    padding: 0.6rem 1rem;
    background: #fff;
    min-width: 160px;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.org-node .org-node-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.org-node .org-node-sub {
    font-size: 0.75rem;
    color: #6c757d;
}

.org-children {
    margin-top: 0;
    padding-top: 1.5rem;
    border-top: 2px solid #dee2e6;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.org-tree {
    text-align: center;
}

.org-tree-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.org-connector {
    width: 2px;
    height: 20px;
    background: #dee2e6;
    margin: 0 auto;
}

/* Modal adjust */
.modal-header .modal-title {
    font-size: 1rem;
}

/* Stat cards on dashboard */
.stat-card {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card .stat-icon {
    font-size: 2rem;
    opacity: 0.75;
}

.stat-card .stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Dark body override for admin pages */
body.admin-body {
    background-color: #f5f5f7;
}
