@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   LOGIN PAGE STYLING
   ========================================================================== */
body.login-body {
    font-family: 'Inter', sans-serif;
    background-image: url('/resources/img/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 20px;
}

.login-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 44px 40px 36px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    color: #222222;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 12px;
}

.brand-title {
    font-size: 26px;
    font-weight: 700;
    color: #005b4d;
    margin: 0;
    letter-spacing: -0.4px;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Floating Label Outline Text Inputs */
.input-group {
    position: relative;
    margin-bottom: 24px;
    width: 100%;
}

.input-group input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #222222;
    background: transparent;
    border: 1.5px solid #007d68;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffffff;
    padding: 0 6px;
    font-size: 14px;
    color: #007d68;
    pointer-events: none;
    transition: all 0.2s ease;
}

.input-group input:focus,
.input-group input:not(:placeholder-shown) {
    border-color: #007d68;
    border-width: 1.5px;
}

.input-group input:focus+label,
.input-group input:not(:placeholder-shown)+label {
    top: 0;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 500;
    color: #007d68;
}

.btn-login {
    width: 100%;
    height: 48px;
    background-color: #007d68;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    margin-top: 4px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-login:hover {
    background-color: #006453;
}

.btn-login:active {
    transform: scale(0.99);
}

.login-footer {
    margin-top: 20px;
    text-align: center;
}

.create-account-link {
    color: #007d68;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.create-account-link:hover {
    text-decoration: underline;
    color: #005b4d;
}

/* ==========================================================================
   BACKOFFICE APP BASE LAYOUT
   ========================================================================== */
body.app-layout {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    color: #0f172a;
}

/* --------------------------------------------------------------------------
   Google Gemini Style Collapsible Sidebar Navigation
   -------------------------------------------------------------------------- */
.app-nav {
    width: 68px;
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    padding: 12px 10px;
    transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.03);
    z-index: 100;
    flex-shrink: 0;
}

.app-nav.expanded {
    width: 240px;
}

.nav-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    height: 44px;
}

.nav-toggle-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.nav-toggle-btn:hover {
    background-color: #f1f5f9;
    color: #007d68;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    white-space: nowrap;
}

.nav-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.nav-brand-name {
    font-size: 17px;
    font-weight: 700;
    color: #005b4d;
    letter-spacing: -0.3px;
}

.nav-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
}

/* Custom Sleek Scrollbar */
.nav-body::-webkit-scrollbar {
    width: 4px;
}

.nav-body::-webkit-scrollbar-track {
    background: transparent;
}

.nav-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.nav-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 40px;
    padding: 0 10px;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
}

.nav-item:hover {
    background-color: #e6f4f1;
    color: #007d68;
}

.nav-item.active {
    background-color: #007d68;
    color: #ffffff;
}

.nav-icon {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
}

.nav-label {
    font-size: 13.5px;
    white-space: nowrap;
}

/* Collapsible Menu Groups */
.nav-group {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
}

.nav-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    color: #64748b;
    transition: all 0.15s ease;
}

.nav-group-header:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.nav-group-left {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.nav-group-icon {
    width: 18px !important;
    height: 18px !important;
    color: #64748b;
}

.nav-group-title-text {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chevron-icon {
    width: 14px !important;
    height: 14px !important;
    color: #94a3b8;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.chevron-icon.open {
    transform: rotate(180deg);
}

.nav-sublist {
    list-style: none;
    padding: 0;
    margin: 2px 0 6px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-item.nav-sub-item {
    height: 36px;
    padding-left: 14px;
    font-size: 13px;
    color: #475569;
    border-radius: 8px;
}

.nav-item.nav-sub-item:hover {
    background-color: #e6f4f1;
    color: #007d68;
}

.nav-item.nav-sub-item .nav-sub-icon {
    width: 15px !important;
    height: 15px !important;
    opacity: 0.75;
}

.nav-footer {
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    position: relative;
}

.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    padding: 0 4px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    outline: none;
    user-select: none;
}

.nav-user-btn:hover {
    background-color: #f1f5f9;
}

.nav-user-btn.active {
    background-color: #e6f4f1;
    border-color: #a7f3d0;
}

.nav-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #007d68 0%, #005b4d 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 125, 104, 0.25);
    transition: transform 0.15s ease;
}

.nav-user-btn:hover .nav-user-avatar {
    transform: scale(1.03);
}

.nav-user-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.nav-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.nav-user-label {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    margin-top: 2px;
}

.nav-user-chevron {
    width: 14px !important;
    height: 14px !important;
    color: #94a3b8;
    flex-shrink: 0;
    margin-left: auto;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-user-chevron.open {
    transform: rotate(180deg);
}

/* Floating Popover Dropdown */
.nav-user-dropdown {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    width: 240px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    padding: 8px;
    z-index: 200;
    backdrop-filter: blur(8px);
}

.nav-user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 10px;
}

.nav-user-avatar-sm {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, #007d68 0%, #005b4d 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.nav-user-dropdown-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.nav-user-dropdown-name {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-user-dropdown-sub {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 1px;
}

.nav-user-dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 4px 0 6px;
}

.nav-user-dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nav-user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    color: #334155;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
}

.nav-user-menu-item:hover {
    background-color: #f1f5f9;
    color: #007d68;
}

.nav-user-menu-item.nav-user-menu-danger:hover {
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
}

.nav-user-menu-icon {
    width: 17px !important;
    height: 17px !important;
    flex-shrink: 0;
    opacity: 0.85;
}

.nav-user-menu-text {
    display: flex;
    flex-direction: column;
}

.nav-user-menu-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
}

.nav-user-menu-desc {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 400;
    margin-top: 1px;
}

/* --------------------------------------------------------------------------
   Main Content Area
   -------------------------------------------------------------------------- */
.app-main {
    flex: 1;
    height: 100vh;
    overflow-y: auto;
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin: 0;
}

.dashboard-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
}

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #005b4d;
    margin-top: 4px;
}

.stat-badge {
    font-size: 12px;
    font-weight: 600;
    color: #16a34a;
    margin-top: 4px;
}

.stat-icon-wrapper {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background-color: #e6f4f1;
    color: #007d68;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-wrapper .lucide,
.stat-icon-wrapper i {
    width: 24px !important;
    height: 24px !important;
}

/* Quick Actions Cards */
.modules-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.module-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.module-card:hover {
    transform: translateY(-3px);
    border-color: #007d68;
}

.module-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #007d68;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.module-icon .lucide,
.module-icon i {
    width: 22px !important;
    height: 22px !important;
}

.module-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.module-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 20px;
}

.btn-module {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    background-color: #e6f4f1;
    color: #007d68;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-module .lucide,
.btn-module i {
    width: 14px !important;
    height: 14px !important;
}

.btn-module:hover {
    background-color: #007d68;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   Aside Inspector Panel
   -------------------------------------------------------------------------- */
.app-aside {
    width: 280px;
    background: #ffffff;
    border-left: 1px solid #e2e8f0;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
}

.app-aside h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.app-aside-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.app-aside p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

[x-cloak] {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Modular Toast & Output Bar Component
   -------------------------------------------------------------------------- */
.toast-bar,
.bottom-toast-bar,
.app-output {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    min-height: 38px;
    padding: 10px 20px;
    background-color: #007d68;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 0;
    transition: left 0.22s cubic-bezier(0.4, 0, 0.2, 1), width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Toast Color Variants */
.toast-success {
    background-color: #22bb33;
    color: #ffffff;
}

.toast-danger,
.toast-error {
    background-color: #bb2124;
    color: #ffffff;
}

.toast-warning {
    background-color: #f0ad4e;
    color: #ffffff;
}

.toast-info {
    background-color: #5bc0de;
    color: #ffffff;
}

/* Standalone / Full-Page Toast (e.g. Login page - spans 100% of viewport) */
.toast-full {
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
}

/* Modular App Layout Toast (e.g. Home page / App Layout - never overlaps .app-nav) */
.app-layout .toast-bar,
.app-layout .bottom-toast-bar,
.app-layout .app-output {
    left: 68px;
    right: 0;
    width: calc(100% - 68px);
    z-index: 90;
}

/* Shift app layout toast left boundary when navbar is expanded */
.app-layout .app-nav.expanded~.toast-bar,
.app-layout .app-nav.expanded~.bottom-toast-bar,
.app-layout .app-nav.expanded~.app-output {
    left: 240px;
    width: calc(100% - 240px);
}

/* ==========================================================================
   ADMINISTRATION MODULE STYLES (TABLES, BADGES, ACTION BUTTONS, DRAWERS)
   ========================================================================== */

/* Top Action Toolbar */
.toolbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: transparent;
    padding: 20px;
    border: none;
    box-shadow: none;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 240px;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 38px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.search-box input:focus {
    border-color: #007d68;
    box-shadow: 0 0 0 3px rgba(0, 125, 104, 0.12);
}

.search-icon {
    position: absolute;
    left: 12px;
    width: 16px !important;
    height: 16px !important;
    color: #94a3b8;
    pointer-events: none;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    background-color: #007d68;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #006453;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    background-color: #ffffff;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    background-color: #dc2626;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

th.dragging {
    opacity: 0.4;
    background-color: #e2e8f0 !important;
}

/* Data Table Styling */
.table-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.data-table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.data-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.data-table tbody tr {
    transition: background-color 0.15s ease;
}

.data-table tbody tr:hover {
    background-color: #f8fafc;
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.badge-active {
    background-color: #dcfce7;
    color: #15803d;
}

.badge-active .badge-dot {
    background-color: #16a34a;
}

.badge-inactive {
    background-color: #f1f5f9;
    color: #64748b;
}

.badge-inactive .badge-dot {
    background-color: #94a3b8;
}

.badge-pending {
    background-color: #fef3c7;
    color: #b45309;
}

.badge-pending .badge-dot {
    background-color: #d97706;
}

.badge-role {
    background-color: #e0f2fe;
    color: #0369a1;
}

.badge-department {
    background-color: #f0fdf4;
    color: #15803d;
}

/* Explicit Action Icon Buttons (View, Edit, Delete) */
.actions-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn i,
.action-btn .lucide {
    width: 16px !important;
    height: 16px !important;
}

.action-btn-expand:hover,
.action-btn-view:hover {
    background-color: #e6f4f1;
    color: #007d68;
    border-color: #007d68;
}

.action-btn-edit:hover {
    background-color: #eff6ff;
    color: #2563eb;
    border-color: #2563eb;
}

.action-btn-delete:hover {
    background-color: #fef2f2;
    color: #dc2626;
    border-color: #dc2626;
}

/* User Avatar Thumbnail */
.user-avatar-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e6f4f1;
    color: #007d68;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-name-wrapper {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: #0f172a;
}

.user-subtext {
    font-size: 12px;
    color: #64748b;
}

/* Slide-Over Side Drawer */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
}

.drawer-panel {
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    z-index: 1001;
}

/* Drawer Alpine Transitions (Enter & Exit) */
.drawer-backdrop-enter {
    transition: opacity 0.25s ease-out;
}
.drawer-backdrop-enter-start {
    opacity: 0;
}
.drawer-backdrop-enter-end {
    opacity: 1;
}
.drawer-backdrop-leave {
    transition: opacity 0.25s ease-in;
}
.drawer-backdrop-leave-start {
    opacity: 1;
}
.drawer-backdrop-leave-end {
    opacity: 0;
}

.drawer-panel-enter {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer-panel-enter-start {
    transform: translateX(100%);
}
.drawer-panel-enter-end {
    transform: translateX(0);
}
.drawer-panel-leave {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer-panel-leave-start {
    transform: translateX(0);
}
.drawer-panel-leave-end {
    transform: translateX(100%);
}

.drawer-panel form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.drawer-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.drawer-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.drawer-close-btn:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.drawer-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: #f8fafc;
    margin-top: auto;
}

/* Detail Card in Read-Only Drawer */
.detail-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.detail-value {
    font-size: 14.5px;
    font-weight: 500;
    color: #0f172a;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Form inputs in Drawer */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #0f172a;
    background-color: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-textarea {
    height: auto;
    min-height: 80px;
    padding: 10px 12px;
    resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #007d68;
    box-shadow: 0 0 0 3px rgba(0, 125, 104, 0.12);
}

.is-invalid,
.form-group.is-invalid .form-input,
.form-group.is-invalid .form-select,
.form-group.is-invalid .form-textarea,
.form-group.is-invalid .custom-select-trigger,
.mini-table-card.is-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
}

/* Mini Table Card & Scrollable Container */
.mini-table-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.mini-table-card .table-responsive {
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: auto;
}

.mini-table-card .table-responsive::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.mini-table-card .table-responsive::-webkit-scrollbar-track {
    background: #f8fafc;
}

.mini-table-card .table-responsive::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.mini-table-card .table-responsive::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.mini-table-card .table-responsive table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.mini-table-card .table-responsive table thead th {
    background-color: #f8fafc;
    box-shadow: inset 0 -1px 0 #e2e8f0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

/* ==========================================================================
   GLOBAL PAGE LOADER OVERLAY
   ========================================================================== */

#page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    /* Visible by default — JS fades it out after DOM is ready */
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#page-loader.page-loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Diamond animation container */
#page-loader .animation-container {
    position: relative;
    width: 75px;
    height: 125px;
}

#page-loader .square {
    position: absolute;
    width: 45px;
    height: 45px;
    border-radius: 9px;
    left: 15px;
    top: 40px;
}

#page-loader .square-green {
    background-color: #0b7c61;
    z-index: 2;
    animation: loaderStepGreen 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

#page-loader .square-grey {
    background-color: #8c8c8e;
    z-index: 1;
    animation: loaderStepGrey 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes loaderStepGreen {
    0%,
    15% {
        transform: translateY(-18px) rotate(45deg);
    }

    30%,
    45% {
        transform: translateY(0px) rotate(45deg);
    }

    60%,
    75% {
        transform: translateY(0px) rotate(225deg);
    }

    90%,
    100% {
        transform: translateY(-18px) rotate(225deg);
    }
}

@keyframes loaderStepGrey {
    0%,
    15% {
        transform: translateY(18px) rotate(45deg);
    }

    30%,
    45% {
        transform: translateY(0px) rotate(45deg);
    }

    60%,
    75% {
        transform: translateY(0px) rotate(225deg);
    }

    90%,
    100% {
        transform: translateY(18px) rotate(225deg);
    }
}

/* ==========================================================================
   CUSTOM WIDGET: COMBOBOX (CUSTOM SELECT)
   ========================================================================== */

.custom-select-wrapper {
    position: relative;
    width: 100%;
    user-select: none;
}

.custom-select-trigger {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #0f172a;
    background-color: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.custom-select-trigger:hover {
    border-color: #94a3b8;
}

.custom-select-trigger.open,
.custom-select-trigger:focus {
    border-color: #007d68;
    box-shadow: 0 0 0 3px rgba(0, 125, 104, 0.12);
}

.custom-select-placeholder {
    color: #94a3b8;
}

.custom-select-arrow {
    width: 16px;
    height: 16px;
    color: #64748b;
    transition: transform 0.2s ease;
}

.custom-select-trigger.open .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    z-index: 1050;
    max-height: 220px;
    overflow-y: auto;
    padding: 4px;
    animation: fadeIn 0.15s ease-out;
}

.custom-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    font-size: 13.5px;
    color: #334155;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.custom-select-option:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.custom-select-option.selected {
    background-color: #e6f4f1;
    color: #007d68;
    font-weight: 600;
}

.custom-select-check {
    width: 16px;
    height: 16px;
    color: #007d68;
}

/* Multi-select checkbox inside custom option */
.custom-select-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    cursor: pointer;
}

.custom-select-checkbox {
    accent-color: #007d68;
    width: 15px;
    height: 15px;
    border-radius: 4px;
    cursor: pointer;
}

/* ==========================================================================
   MINIMAL INTUITIVE PASSWORD STRENGTH & COUNTER
   ========================================================================== */

.pwd-feedback {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 5px;
    height: 14px;
    padding: 0 2px;
}

.pwd-strength-bar-track {
    width: 42%;
    height: 3px;
    background-color: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.pwd-strength-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.pwd-char-count {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s ease, opacity 0.2s ease;
}

/* ==========================================================================
   DRAG AND DROP ENHANCEMENTS FOR DATA TABLES
   ========================================================================== */

th[draggable="true"] {
    transition: background-color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
    position: relative;
}

th[draggable="true"]:hover {
    background-color: #f1f5f9;
}

/* State when column is being dragged */
th.dragging {
    opacity: 0.45;
    background-color: #e2e8f0 !important;
    border: 2px dashed #007d68 !important;
}

/* Visual Drop Indicator line on target header */
th.drag-over-left {
    position: relative;
    background-color: #f0fdf4 !important;
}

th.drag-over-left::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3.5px;
    background-color: #007d68;
    box-shadow: 0 0 8px rgba(0, 125, 104, 0.6);
    border-radius: 2px;
    z-index: 10;
}

th.drag-over-right {
    position: relative;
    background-color: #f0fdf4 !important;
}

th.drag-over-right::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 3.5px;
    background-color: #007d68;
    box-shadow: 0 0 8px rgba(0, 125, 104, 0.6);
    border-radius: 2px;
    z-index: 10;
}

/* Smooth Column Swap Animation */
td.column-swap-animate,
th.column-swap-animate {
    animation: columnSwapHighlight 0.45s cubic-bezier(0.2, 0, 0, 1);
}

@keyframes columnSwapHighlight {
    0% {
        background-color: rgba(0, 125, 104, 0.18);
        transform: scale(0.99);
    }
    100% {
        background-color: transparent;
        transform: scale(1);
    }
}

/* ==========================================================================
   INDICATORS IFRAME EXPANDED DASHBOARD VIEW
   ========================================================================== */
.iframe-view-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.iframe-header {
    height: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    padding: 0 10px;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: none;
    flex-shrink: 0;
}

.iframe-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.iframe-title-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.iframe-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    margin: 0;
}

.iframe-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.iframe-btn-compact {
    height: 22px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    gap: 4px !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.iframe-btn-compact:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

.iframe-wrapper {
    flex: 1;
    width: 100%;
    height: calc(100% - 32px);
    background: #ffffff;
    border-radius: 0;
    border: none;
    overflow: hidden;
    box-shadow: none;
    position: relative;
    margin: 0;
    padding: 0;
}

.indicator-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    outline: none;
    margin: 0;
    padding: 0;
    display: block;
}


/* ==========================================================================
   HOME PAGE — Admin & User layouts
   ========================================================================== */

/* ── Shared section title (used in both layouts) ── */
.home-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.home-panel-icon {
    width: 16px !important;
    height: 16px !important;
    color: #007d68;
}

/* ── Stat card variants ── */
.stat-card--danger {
    border-color: #fecaca;
    background: #fff5f5;
}

.stat-value--danger {
    color: #dc2626 !important;
}

.stat-badge--danger {
    color: #dc2626 !important;
}

.stat-badge--muted {
    color: #94a3b8 !important;
    font-style: italic;
}

.stat-icon-wrapper--danger {
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
}

/* ── Two-column layout (admin) ── */
.home-two-col {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 1100px) {
    .home-two-col {
        grid-template-columns: 1fr;
    }
}

/* ── Generic panel card ── */
.home-panel {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-panel-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

/* ── Activity Feed ── */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.activity-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f8fafc;
    font-size: 13px;
}

.activity-row:last-child {
    border-bottom: none;
}

.activity-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    height: 22px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0 8px;
}

.activity-badge--insert {
    background-color: #dcfce7;
    color: #15803d;
}

.activity-badge--update {
    background-color: #fef9c3;
    color: #854d0e;
}

.activity-badge--delete {
    background-color: #fee2e2;
    color: #b91c1c;
}

.activity-row-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
}

.activity-table {
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-record {
    color: #94a3b8;
    font-size: 12px;
    flex-shrink: 0;
}

.activity-row-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.activity-actor {
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    white-space: nowrap;
}

.activity-actor--system {
    color: #94a3b8;
    font-style: italic;
}

.activity-time {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
}

/* ── Quick Launch Grid ── */
.quick-launch-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quick-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #334155;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.quick-card:hover {
    background-color: #e6f4f1;
    color: #007d68;
}

.quick-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.quick-card:hover .quick-card-icon {
    background-color: #007d68;
    color: #ffffff;
}

.quick-card-icon i,
.quick-card-icon .lucide {
    width: 15px !important;
    height: 15px !important;
}

.quick-card-label {
    flex: 1;
    font-size: 13.5px;
    font-weight: 500;
}

.quick-card-arrow {
    width: 14px !important;
    height: 14px !important;
    color: #cbd5e1;
    flex-shrink: 0;
}

.quick-card:hover .quick-card-arrow {
    color: #007d68;
}

/* ── Empty State ── */
.home-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px 16px;
    color: #94a3b8;
    text-align: center;
}

.home-empty-state i,
.home-empty-state .lucide {
    width: 36px !important;
    height: 36px !important;
    opacity: 0.4;
}

.home-empty-state p {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}

.home-empty-state span {
    font-size: 12px;
}

.home-empty-state--card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 48px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ── User Greeting ── */
.user-greeting {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-greeting-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.4px;
    margin: 0;
}

.user-greeting-sub {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
}

/* ── Last Indicator Card ── */
.last-indicator-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.last-indicator-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
}

.last-indicator-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.last-indicator-name {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px 0;
    transition: color 0.15s ease;
}

.last-indicator-name:hover {
    color: #007d68;
}

.last-indicator-detail {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.indicator-iframe-wrapper {
    width: 100%;
    height: 520px;
    background: #f8fafc;
}

.indicator-iframe-preview {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ==========================================================================
   USER CONFIGURATION / PROFILE PAGE
   ========================================================================== */
.user-config-page-container {
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.user-config-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
    padding: 32px 36px;
}

.user-config-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 24px;
}

.user-config-avatar-big {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: linear-gradient(135deg, #007d68 0%, #005b4d 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    box-shadow: 0 8px 16px -2px rgba(0, 125, 104, 0.3);
}

.user-config-profile-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.user-config-profile-name {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.3px;
}

.user-config-profile-login {
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 6px;
}

.user-config-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.user-config-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 20px 0;
}

.user-config-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-config-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media (max-width: 640px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

.pwd-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.pwd-toggle-btn:hover {
    background-color: #f1f5f9;
}

.pwd-rules-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

@media (max-width: 640px) {
    .pwd-rules-card {
        grid-template-columns: 1fr;
    }
}

.pwd-rule-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.pwd-rule-item .pwd-rule-icon {
    width: 14px;
    height: 14px;
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.pwd-rule-item.valid {
    color: #059669;
    font-weight: 500;
}

.pwd-rule-item.valid .pwd-rule-icon {
    color: #10b981;
}

.user-config-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
}


