@charset "UTF-8";

/* ==========================================================================
   SoundTeknik GCP-Style Core Layout & Global Styles
   ========================================================================== */

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Space Grotesk", sans-serif;
    background-color: #0f141e;
    color: #f1f5f9;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==========================================================================
   Top Header Navigation Bar (GCP Console Style)
   ========================================================================== */

.app-navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    background-color: #161c28;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    z-index: 1000;
}

.app-navbar-inner {
    width: 100%;
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-navbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Sidebar Hamburger Toggle Button (GCP Style) */
.app-sidebar-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-sidebar-toggle-btn:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.4);
    color: #60a5fa;
    transform: scale(1.04);
}

.app-sidebar-toggle-btn:active {
    transform: scale(0.96);
}

/* Brand Logo & Name */
.app-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
    transition: opacity 0.2s ease;
}

.app-brand:hover {
    opacity: 0.92;
}

.app-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    flex-shrink: 0;
}

.app-brand-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-brand-title {
    font-size: 16.5px;
    font-weight: 700;
    letter-spacing: -0.25px;
    color: #ffffff;
    line-height: 1;
}

.app-brand-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    background: rgba(56, 189, 248, 0.2);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
}

/* Right Navigation Section */
.app-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Top Navbar User Dropdown Wrapper */
.app-user-dropdown-wrapper {
    position: relative;
}

/* User Profile Chip */
.app-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    padding: 4px 14px 4px 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.app-user-chip:hover {
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(37, 99, 235, 0.45);
    transform: translateY(-1px);
}

.app-user-avatar-sm {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.app-user-name {
    font-size: 12.5px;
    font-weight: 500;
    color: #f1f5f9;
}

/* Role Badges */
.app-badge-role {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 2px 7px;
    border-radius: 9999px;
}

.app-badge-superuser {
    background-color: rgba(168, 85, 247, 0.2);
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, 0.5);
}

.app-badge-admin {
    background-color: rgba(244, 63, 94, 0.18);
    color: #fda4af;
    border: 1px solid rgba(244, 63, 94, 0.4);
}

.app-badge-staff {
    background-color: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.app-header-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.25);
    color: #fda4af;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.app-header-logout-btn:hover {
    background: rgba(244, 63, 94, 0.22);
    color: #ffffff;
}

.app-login-btn {
    display: inline-flex;
    align-items: center;
    background: #2563eb;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-transform: none;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.app-login-btn:hover {
    background: #1d4ed8;
}

/* ==========================================================================
   Master GCP-Style Layout: Left Sidebar + Right Content Area
   ========================================================================== */

.app-layout {
    display: flex;
    min-height: calc(100vh - 60px);
    width: 100%;
    position: relative;
}

/* Left Sidebar (260px fixed width, open by default, sticky) */
.app-sidebar {
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    height: calc(100vh - 60px);
    position: sticky;
    top: 60px;
    background-color: #131822;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 100;
    overflow: hidden;
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                min-width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                max-width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.2s ease,
                border-right-color 0.25s ease;
}

/* Collapsed State on Desktop (Smoothly collapse width to 0) */
.app-sidebar.collapsed {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    border-right-color: transparent;
}

/* Mobile Backdrop (only used on <= 1024px screens) */
#app-sidebar-backdrop {
    display: none;
}

/* Custom Scrollbar for Sidebar */
.app-sidebar::-webkit-scrollbar {
    width: 5px;
}

.app-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.app-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

.app-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* Sidebar Scrollable Body */
.sidebar-body {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

/* Sidebar Fixed Bottom Footer (Version Bar) */
.sidebar-footer {
    width: 100%;
    flex-shrink: 0;
    margin-top: auto;
    padding: 14px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background-color: #0f131c;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #64748b;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
}

.sidebar-version-label {
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.2px;
}

.sidebar-version-badge {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 600;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}


/* Category Label */
.sidebar-group-title {
    padding: 0 8px;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: none;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-group-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sidebar-group-dot-blue { background-color: #38bdf8; }
.sidebar-group-dot-emerald { background-color: #34d399; }
.sidebar-group-dot-purple { background-color: #a855f7; }

/* Menu Items & Accordions */
.sidebar-nav-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-nav-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 7px;
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.sidebar-nav-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.sidebar-nav-btn.active {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
    font-weight: 600;
}

.sidebar-nav-btn-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-nav-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.sidebar-arrow-icon {
    width: 14px;
    height: 14px;
    color: #64748b;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.sidebar-arrow-icon.rotated {
    transform: rotate(180deg);
}

/* Accordion Submenu */
.sidebar-submenu {
    display: none;
    margin-left: 17px;
    padding-left: 10px;
    border-left: 2px solid rgba(255, 255, 255, 0.08);
    margin-top: 2px;
    margin-bottom: 4px;
    flex-direction: column;
    gap: 1px;
}

.sidebar-submenu.open {
    display: flex;
}

.sidebar-sub-item {
    display: block;
    padding: 6px 8px;
    font-size: 12px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.15s ease;
}

.sidebar-sub-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(2px);
}

.sidebar-sub-item.active {
    color: #60a5fa;
    font-weight: 700;
    background: rgba(37, 99, 235, 0.12);
}



/* ==========================================================================
   Right Main Content Area (~80% width)
   ========================================================================== */

.app-main-content {
    flex: 1;
    min-width: 0; /* Prevents overflow issues with wide tables */
    padding: 28px 32px;
    background-color: #0f141e;
    min-height: calc(100vh - 60px);
    overflow-y: auto;
    transition: padding 0.25s ease;
}

.app-content-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.app-page-header {
    margin-bottom: 24px;
    text-align: center;
}

.app-page-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
}

.app-page-subtitle {
    font-size: 13.5px;
    color: #94a3b8;
    margin: 0;
}

/* Content Container Card */
.body-container {
    width: 100%;
    height: fit-content;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background-color: #161c28;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.workBox {
    width: 80%;
    height: fit-content;
    padding: 28px;
    border-radius: 12px;
    background-color: #1e2638;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.workBox:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Responsive Adaptations (Tablet & Mobile)
   ========================================================================== */

@media (max-width: 1024px) {
    .app-sidebar,
    .app-sidebar.collapsed {
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        height: calc(100vh - 60px) !important;
        width: 280px !important;
        min-width: 280px !important;
        max-width: 85vw !important;
        margin-left: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        z-index: 99999 !important;
        transform: translateX(-100%);
        box-shadow: 10px 0 35px rgba(0, 0, 0, 0.6);
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .app-sidebar.mobile-open,
    .app-sidebar.collapsed.mobile-open {
        transform: translateX(0) !important;
    }

    .sidebar-body {
        width: 100% !important;
    }

    #app-sidebar-backdrop {
        display: block !important;
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background-color: rgba(10, 14, 23, 0.7) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        z-index: 99998 !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    #app-sidebar-backdrop.mobile-open {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .app-main-content {
        padding: 20px 16px;
    }

    .workBox {
        width: 100%;
        padding: 20px;
    }
}

/* ==========================================================================
   Comprehensive Dark Theme Contrast & Component System
   ========================================================================== */

/* Content Links */
.app-main-content a:not(.app-sidebar-toggle-btn):not(.sidebar-nav-btn):not(.sidebar-sub-item):not(.btn):not(.inline-block):not(.app-header-logout-btn):not(.app-login-btn):not(.app-user-chip) {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.15s ease, text-decoration 0.15s ease;
}

.app-main-content a:not(.app-sidebar-toggle-btn):not(.sidebar-nav-btn):not(.sidebar-sub-item):not(.btn):not(.inline-block):not(.app-header-logout-btn):not(.app-login-btn):not(.app-user-chip):hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* Inputs & Forms Dark Theme */
.app-main-content input,
.app-main-content textarea,
.app-main-content select {
    color: #f1f5f9;
}

.app-main-content input[type="text"],
.app-main-content input[type="search"],
.app-main-content input[type="email"],
.app-main-content input[type="password"],
.app-main-content input[type="number"],
.app-main-content textarea,
.app-main-content select {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #f1f5f9;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.app-main-content input:focus,
.app-main-content textarea:focus,
.app-main-content select:focus {
    border-color: #3b82f6 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25) !important;
}

.app-main-content input::placeholder,
.app-main-content textarea::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

/* Floating labels and standard labels */
.app-main-content label,
.basic-input-label {
    color: #94a3b8 !important;
}

.app-main-content input:focus ~ label,
.app-main-content textarea:focus ~ label,
.app-main-content input:focus ~ .basic-input-label,
.peer:focus ~ .basic-input-label,
[data-te-input-focused] ~ label,
[data-te-input-state-active] ~ label {
    color: #60a5fa !important;
}

/* TW-Elements Notched Outlines */
.form-notch-leading,
.form-notch-middle,
.form-notch-trailing {
    border-color: rgba(255, 255, 255, 0.18) !important;
}

[data-te-input-focused] .form-notch-leading,
[data-te-input-focused] .form-notch-middle,
[data-te-input-focused] .form-notch-trailing {
    border-color: #3b82f6 !important;
    box-shadow: none !important;
}

/* TW-Elements Select Dropdown */
.select-input {
    color: #f1f5f9 !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
}

.select-arrow {
    color: #94a3b8 !important;
}

.select-dropdown-container,
[data-te-select-dropdown] {
    background-color: #1e2638 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    color: #f1f5f9 !important;
    overflow: hidden !important;
    z-index: 10000 !important;
}

.select-options-list {
    background-color: #1e2638 !important;
}

.select-option {
    color: #cbd5e1 !important;
    padding: 9px 14px !important;
    transition: background 0.12s ease !important;
}

.select-option:hover,
.select-option:focus {
    background-color: rgba(59, 130, 246, 0.18) !important;
    color: #ffffff !important;
}

.select-option.selected,
.select-option[data-te-select-option-selected="true"] {
    background-color: rgba(59, 130, 246, 0.25) !important;
    color: #60a5fa !important;
    font-weight: 600 !important;
}

.select-filter-input {
    background-color: #131822 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #f1f5f9 !important;
    border-radius: 6px !important;
}

/* Tables & Datatables Dark System */
.app-main-content table {
    width: 100%;
    color: #e2e8f0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.app-main-content thead th,
.datatable thead th {
    background-color: #1a2234 !important;
    color: #cbd5e1 !important;
    font-weight: 600 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 12px 16px !important;
    letter-spacing: 0.3px !important;
}

.app-main-content tbody td,
.datatable tbody td {
    color: #e2e8f0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 12px 16px !important;
}

.app-main-content tbody tr:hover,
.datatable tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.035) !important;
}

/* Datatable Inner & Controls */
.datatable {
    background-color: transparent !important;
    color: #e2e8f0 !important;
}

.datatable-inner {
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    overflow: hidden !important;
}

.datatable-pagination {
    color: #cbd5e1 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 12px 16px !important;
}

.datatable-pagination select {
    background-color: #1e2638 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #f1f5f9 !important;
    border-radius: 6px !important;
    padding: 4px 8px !important;
}

.datatable-pagination-nav {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.datatable-pagination-button {
    color: #cbd5e1 !important;
    border-radius: 6px !important;
    transition: all 0.15s ease !important;
}

.datatable-pagination-button:hover:not([disabled]) {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.datatable-pagination-button[disabled] {
    color: #475569 !important;
    opacity: 0.5 !important;
}

/* Search bar on top of Datatables */
#datatable-search-input,
#thisMonthIsJobs_datatable-search-input {
    color: #f1f5f9 !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 8px !important;
    padding: 9px 14px !important;
}

#datatable-search-input::placeholder,
#thisMonthIsJobs_datatable-search-input::placeholder {
    color: #94a3b8 !important;
}

/* Dark Mode Refined Alerts */
.bg-success-100,
.bg-green-100 {
    background-color: rgba(16, 185, 129, 0.14) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    color: #6ee7b7 !important;
}

.text-success-700,
.text-green-700 {
    color: #6ee7b7 !important;
}

.bg-danger-100,
.bg-red-100 {
    background-color: rgba(239, 68, 68, 0.14) !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    color: #fca5a5 !important;
}

.text-danger-700,
.text-red-700 {
    color: #fca5a5 !important;
}

.bg-primary-100,
.bg-blue-100 {
    background-color: rgba(59, 130, 246, 0.14) !important;
    border: 1px solid rgba(59, 130, 246, 0.35) !important;
    color: #93c5fd !important;
}

.text-primary-700,
.text-blue-700 {
    color: #93c5fd !important;
}

/* Dark Container Overrides for Legacy Views */
.body-container .bg-white {
    background-color: #1a2234 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #f1f5f9 !important;
}

.body-container .bg-neutral-50 {
    background-color: #141b27 !important;
    color: #cbd5e1 !important;
}

.body-container .divide-neutral-200 > :not([hidden]) ~ :not([hidden]) {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.body-container .border-neutral-200,
.body-container .border-neutral-300 {
    border-color: rgba(255, 255, 255, 0.14) !important;
}

.body-container .text-neutral-700,
.body-container .text-neutral-800 {
    color: #f1f5f9 !important;
}

.body-container .text-neutral-600,
.body-container .text-neutral-500 {
    color: #94a3b8 !important;
}

.body-container .bg-neutral-200 {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
}

.body-container .bg-neutral-200:hover {
    background-color: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   TW-Elements Datepicker Dark Mode Enhancements
   ========================================================================== */

[data-te-datepicker-init] {
    position: relative;
}

[data-te-datepicker-init] [data-te-datepicker-toggle-button-ref] {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    background: transparent;
    border: none;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, background 0.15s ease;
    z-index: 5;
}

[data-te-datepicker-init] [data-te-datepicker-toggle-button-ref]:hover {
    color: #60a5fa;
    background: rgba(255, 255, 255, 0.08);
}

[data-te-datepicker-modal-container-ref] {
    background-color: #1e2638 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6) !important;
    color: #f1f5f9 !important;
    overflow: hidden;
    z-index: 1070 !important;
}

[data-te-datepicker-modal-container-ref] [data-te-datepicker-header] {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
}

[data-te-datepicker-modal-container-ref] table {
    color: #f1f5f9 !important;
}

[data-te-datepicker-modal-container-ref] [data-te-datepicker-cell-content] {
    color: #f1f5f9 !important;
}

[data-te-datepicker-modal-container-ref] [data-te-datepicker-footer-button-ref] {
    color: #60a5fa !important;
}

[data-te-dropdown-backdrop-ref] {
    background-color: rgba(10, 14, 23, 0.75) !important;
    backdrop-filter: blur(4px);
    z-index: 1065 !important;
}

/* ==========================================================================
   Console ERP Dashboard Bulletproof Responsive Layout & Styling
   ========================================================================== */

/* Clean transparent container on Console */
.body-container.console-clean-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.app-main-content:has(.console-clean-container) .app-page-header {
    text-align: left;
    margin-bottom: 20px;
}

.app-main-content:has(.console-clean-container) .app-page-title {
    font-size: 22px;
    font-weight: 700;
}

.app-main-content:has(.console-clean-container) .app-page-subtitle {
    font-size: 13px;
    color: #94a3b8;
}

/* 1. Grids */
.console-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
    width: 100%;
}

/* Console Chart Period Pagination Toolbar */
.console-period-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: #161c28;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 16px;
    margin-bottom: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.console-period-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.console-period-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #f8fafc;
}

.console-period-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.console-period-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.period-badge-jobs {
    color: #93c5fd;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.period-badge-jobs strong {
    color: #60a5fa;
    font-weight: 700;
}

.period-badge-divider {
    color: #475569;
}

.period-badge-rev {
    color: #86efac;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.period-badge-rev strong {
    color: #34d399;
    font-weight: 700;
}

.console-period-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.console-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
}

.console-nav-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.console-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.console-year-pills {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}

.console-year-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}

.console-year-pill:hover:not(.active) {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.06);
}

.console-year-pill.active {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.console-year-current-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 5px rgba(16, 185, 129, 0.8);
    display: inline-block;
}

.console-month-input {
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #f1f5f9;
    font-size: 12px;
    font-weight: 600;
    color-scheme: dark;
    font-family: inherit;
}

.console-month-input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.console-middle-analytics-grid.is-loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.console-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
    width: 100%;
}

.console-urgent-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}

.console-actions-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
    width: 100%;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .console-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .console-actions-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .console-urgent-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .console-charts-grid {
        grid-template-columns: 1fr;
    }
    .console-urgent-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .console-kpi-grid {
        grid-template-columns: 1fr;
    }
    .console-actions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 2. KPI Cards */
.console-kpi-card {
    background: #161c28;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.console-kpi-card:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.console-kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent-gradient, linear-gradient(90deg, #2563eb, #38bdf8));
    opacity: 0.9;
}

.console-kpi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.console-kpi-title {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: none;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.console-kpi-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.console-kpi-value {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 2px 0 6px 0;
    letter-spacing: -0.3px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.console-kpi-subtext {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 3. Chart Cards */
.console-chart-card {
    background: #161c28;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.console-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.console-chart-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.2px;
}

.console-chart-subtitle {
    font-size: 11px;
    color: #94a3b8;
    margin: 2px 0 0 0;
}

.console-chart-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    max-height: 220px;
    min-width: 0;
    overflow: hidden;
}

.console-chart-wrapper canvas {
    max-height: 220px !important;
    width: 100% !important;
    display: block !important;
}

/* 3.5. Middle Analytics Cards (Issue #3) */
.console-middle-analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .console-middle-analytics-grid {
        grid-template-columns: 1fr;
    }
}

.console-analytics-card {
    background: #161c28;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    overflow: hidden;
}

.console-analytics-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0.9;
}

.analytics-card-companies::before {
    background: linear-gradient(90deg, #6366f1, #818cf8);
}

.analytics-card-molds::before {
    background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.console-analytics-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 14px;
}

.console-analytics-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.console-analytics-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.2px;
}

.console-analytics-subtitle {
    font-size: 11px;
    color: #94a3b8;
    margin: 2px 0 0 0;
}

.console-analytics-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 9999px;
    white-space: nowrap;
}

.console-companies-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}

.console-companies-list::-webkit-scrollbar {
    width: 5px;
}

.console-companies-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.console-company-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.console-company-row:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(2px);
}

.console-company-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.console-company-rank {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    width: 22px;
    flex-shrink: 0;
}

.console-company-name {
    font-size: 12.5px;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.console-company-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.console-company-count-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.console-mold-direction-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    justify-content: space-between;
}

.console-mold-dir-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.console-mold-dir-card {
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid transparent;
}

.mold-dir-card-r {
    background: rgba(244, 63, 94, 0.08);
    border-color: rgba(244, 63, 94, 0.25);
}

.mold-dir-card-l {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.25);
}

.console-mold-dir-label {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.mold-dir-card-r .console-mold-dir-label {
    color: #fca5a5;
}

.mold-dir-card-l .console-mold-dir-label {
    color: #93c5fd;
}

.console-mold-dir-value {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
}

.mold-dir-card-r .console-mold-dir-value {
    color: #f87171;
}

.mold-dir-card-l .console-mold-dir-value {
    color: #60a5fa;
}

.console-mold-dir-sub {
    font-size: 11px;
    color: #94a3b8;
}

.console-mold-bar-wrap {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    height: 8px;
    overflow: hidden;
    display: flex;
    width: 100%;
}

.console-mold-bar-r {
    background: #f43f5e;
    height: 100%;
    transition: width 0.3s ease;
}

.console-mold-bar-l {
    background: #3b82f6;
    height: 100%;
    transition: width 0.3s ease;
}

.console-mold-extra-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 11.5px;
    color: #cbd5e1;
}

.console-mold-footer-note {
    font-size: 10.5px;
    color: #64748b;
    text-align: center;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* 4. Urgent Jobs 3-Column Layout */
.console-urgent-section {
    margin-bottom: 20px;
}

.console-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.console-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.console-section-subtitle {
    font-size: 11.5px;
    color: #94a3b8;
    margin: 0;
}

.console-urgent-col {
    background: #161c28;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}

.console-urgent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.console-urgent-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.console-urgent-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.console-urgent-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.console-urgent-count-badge {
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 5px;
}

.console-urgent-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 480px;
    max-height: 480px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    flex: 1;
}

.console-urgent-list::-webkit-scrollbar {
    width: 4px;
}

.console-urgent-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.console-urgent-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.console-urgent-item {
    background: #111722;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left-width: 3px;
    border-radius: 8px;
    padding: 9px 12px;
    transition: all 0.15s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    color: inherit;
    min-width: 0;
    min-height: 58px;
    flex-shrink: 0 !important; /* CRITICAL: Never squish items in flex containers */
    box-sizing: border-box;
}

.console-urgent-item:hover {
    background: #182232;
    border-color: rgba(96, 165, 250, 0.35);
    transform: translateY(-1px);
}

.console-urgent-item.border-accent-set {
    border-left-color: #a855f7;
}

.console-urgent-item.border-accent-mold {
    border-left-color: #3b82f6;
}

.console-urgent-item.border-accent-montage {
    border-left-color: #06b6d4;
}

.console-urgent-item.border-accent-revision {
    border-left-color: #f59e0b;
}

.console-urgent-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    line-height: 1.25;
}

.console-urgent-lead {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.console-urgent-id {
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.console-urgent-patient {
    font-size: 12.5px;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.console-urgent-row-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    font-size: 11px;
    line-height: 1.25;
}

.console-urgent-company {
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}

.console-urgent-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.console-urgent-model {
    color: #64748b;
    font-size: 10.5px;
    max-width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.console-urgent-price {
    font-weight: 600;
    font-size: 11px;
    white-space: nowrap;
}

.console-badge-urgent-red {
    background: rgba(225, 29, 72, 0.15);
    color: #fb7185;
    border: 1px solid rgba(225, 29, 72, 0.3);
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.console-badge-urgent-amber {
    background: rgba(217, 119, 6, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(217, 119, 6, 0.3);
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.console-badge-urgent-blue {
    background: rgba(37, 99, 235, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(37, 99, 235, 0.3);
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 5. Quick Actions */
.console-actions-section {
    margin-top: 4px;
}

.console-actions-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: none;
    color: #94a3b8;
    margin: 0 0 10px 0;
}

.console-actions-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
    width: 100%;
}

.console-action-btn {
    background: #161c28;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #f1f5f9;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.console-action-btn:hover {
    background: #1f283a;
    border-color: rgba(96, 165, 250, 0.4);
    color: #60a5fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Personnel Registration Form Styles (.register-form-*)
   ========================================================================== */

.register-form-container {
    max-width: 660px;
    margin: 0 auto;
}

.register-top-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.register-alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 10px;
    padding: 16px 20px;
    color: #6ee7b7;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.register-alert-success-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.register-alert-success-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34d399;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.register-alert-success-btn {
    padding: 8px 16px;
    border-radius: 8px;
    background: #10b981;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.register-alert-success-btn:hover {
    background: #059669;
}

.register-alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 10px;
    padding: 16px 20px;
    color: #fca5a5;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.register-alert-error ul {
    margin: 8px 0 0 18px;
    padding: 0;
    list-style-type: disc;
    font-size: 12px;
    line-height: 1.6;
}

.register-form-group {
    margin-bottom: 18px;
}

.register-form-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: none;
    color: #cbd5e1;
    margin-bottom: 7px;
}

.register-form-label .required-star {
    color: #f43f5e;
    margin-left: 3px;
}

.register-form-label .label-hint {
    font-size: 11px;
    font-weight: 400;
    text-transform: none;
    color: #94a3b8;
}

.register-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.register-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    z-index: 2;
}

.register-input {
    width: 100%;
    background: #111722;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px 14px 10px 38px;
    color: #f1f5f9;
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.register-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.register-input.has-error {
    border-color: #f43f5e;
}

.register-input.has-error:focus {
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.2);
}

.register-input-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
    z-index: 2;
}

.register-input-toggle-btn:hover {
    color: #f1f5f9;
}

.register-select {
    width: 100%;
    background: #111722;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px 14px;
    color: #f1f5f9;
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.register-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.register-field-error {
    color: #f87171;
    font-size: 11.5px;
    font-weight: 500;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.register-field-help {
    color: #64748b;
    font-size: 11.5px;
    margin-top: 5px;
    line-height: 1.4;
}

.register-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {
    .register-grid-2col {
        grid-template-columns: 1fr;
    }
}

.register-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.register-btn-cancel {
    padding: 9px 18px;
    border-radius: 8px;
    background: #1e2638;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.register-btn-cancel:hover {
    background: #28354c;
    color: #ffffff;
}

.register-btn-submit {
    padding: 9px 24px;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.register-btn-submit:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
}

/* ==========================================================================
   Modern Auth Pages (Password Reset, Confirm, Email Verification)
   ========================================================================== */

.auth-page-wrapper {
    max-width: 520px;
    margin: 40px auto;
    padding: 0 16px;
}

.auth-card {
    background: #151c28;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px 36px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    position: relative;
}

.auth-card-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.auth-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
}

.auth-card-desc {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

.auth-footer-links {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.auth-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease;
}

.auth-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.auth-btn-block {
    width: 100%;
    justify-content: center;
    padding: 11px 20px;
    font-size: 13.5px;
}

/* ==========================================================================
   Clean Transparent Parent Layout for Auth Cards (Single Title & Centered Box)
   ========================================================================== */

/* 1. Hide parent page header when page contains an auth-card or auth-page-wrapper */
.app-content-container:has(.auth-card) .app-page-header,
.app-content-container:has(.auth-page-wrapper) .app-page-header,
.app-main-content:has(.auth-card) .app-page-header,
.app-main-content:has(.auth-page-wrapper) .app-page-header,
.app-content-container:has(.auth-clean-body) .app-page-header {
    display: none !important;
}

/* 2. Make outer body-container transparent (no box frame, no border, no shadow, no background) */
.body-container.auth-clean-body,
.body-container.home-clean-body,
.body-container:has(.auth-card),
.body-container:has(.auth-page-wrapper),
.app-content-container:has(.auth-card) .body-container,
.app-content-container:has(.auth-page-wrapper) .body-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* ==========================================================================
   User Profile Screen (.profile-card-*)
   ========================================================================== */

.profile-wrapper {
    max-width: 780px;
    margin: 10px auto 40px auto;
}

.profile-card {
    background: #161c28;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-avatar-wrap {
    position: relative;
    width: 84px;
    height: 84px;
    flex-shrink: 0;
}

.profile-avatar-img {
    width: 84px !important;
    height: 84px !important;
    max-width: 84px !important;
    max-height: 84px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    display: block;
}

.profile-status-indicator {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #161c28;
    transition: all 0.2s ease;
    z-index: 4;
}

.profile-avatar-upload-btn {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid #0f172a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
    z-index: 5;
    padding: 0;
}

.profile-avatar-upload-btn:hover {
    background: #3b82f6;
    transform: scale(1.1);
}

.profile-avatar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.profile-avatar-btn-text {
    font-size: 11.5px;
    font-weight: 500;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.28);
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1.4;
}

.profile-avatar-btn-text:hover {
    background: rgba(59, 130, 246, 0.22);
    color: #bfdbfe;
    border-color: rgba(59, 130, 246, 0.45);
}

.profile-avatar-btn-remove {
    font-size: 11.5px;
    font-weight: 500;
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.4;
}

.profile-avatar-btn-remove:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fecdd3;
    border-color: rgba(239, 68, 68, 0.45);
}

.profile-status-online {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}

.profile-status-offline {
    background: #64748b;
    box-shadow: none;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.profile-name {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.3px;
}

.profile-role-badge {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.profile-role-superuser {
    background: rgba(168, 85, 247, 0.2);
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, 0.5);
}

.profile-role-admin {
    background: rgba(244, 63, 94, 0.18);
    color: #fda4af;
    border: 1px solid rgba(244, 63, 94, 0.35);
}

.profile-role-staff {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.profile-email {
    font-size: 14px;
    color: #94a3b8;
    margin: 0 0 6px 0;
}

.profile-meta {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Dikey Kutular Düzeni (.profile-stack) */
.profile-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0 0 0;
}

.profile-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 20px 24px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-box:hover {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.12);
}

.profile-box-disabled {
    opacity: 0.65;
    background: rgba(255, 255, 255, 0.015);
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.08);
}

.profile-box-disabled:hover {
    background: rgba(255, 255, 255, 0.015);
    border-color: rgba(255, 255, 255, 0.08);
}

.profile-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-box-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.2px;
    color: #94a3b8;
}

.profile-box-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.profile-box-value {
    font-size: 15px;
    font-weight: 600;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-box-desc {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

/* Durum Rozetleri */
.profile-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.profile-pill-success {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.profile-pill-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.profile-pill-muted {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

/* Butonlar */
.profile-action-btn-primary {
    padding: 9px 18px;
    border-radius: 8px;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: #ffffff;
    border: none;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.profile-action-btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
    color: #ffffff;
}

.profile-action-btn-disabled {
    padding: 9px 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #64748b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: not-allowed;
    white-space: nowrap;
}

/* Çok Satırlı Aktif Oturumlar */
.profile-sessions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 4px;
}

.profile-session-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 12px;
    transition: background 0.15s ease;
}

.profile-session-item:hover {
    background: rgba(0, 0, 0, 0.32);
}

.profile-session-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.profile-session-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #93c5fd;
    flex-shrink: 0;
}

.profile-session-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 3px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-session-meta {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-session-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.profile-session-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-session-revoke-btn {
    padding: 5px 12px;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.profile-session-revoke-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #ffffff;
    border-color: rgba(239, 68, 68, 0.5);
}

.profile-session-revoke-others-btn {
    padding: 5px 12px;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.25);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.profile-session-revoke-others-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ffffff;
    border-color: rgba(239, 68, 68, 0.45);
}

/* Eski Grid Desteği */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.profile-grid-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px 20px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.profile-grid-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.profile-grid-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.2px;
    color: #64748b;
    margin-bottom: 6px;
}

.profile-grid-value {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #f1f5f9;
}

.profile-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.profile-btn-back {
    padding: 10px 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.profile-btn-back:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
}

.profile-btn-action {
    padding: 10px 22px;
    border-radius: 8px;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: #ffffff;
    border: none;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.15s ease;
}

.profile-btn-action:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
    color: #ffffff;
}

.profile-btn-logout {
    padding: 10px 18px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.25);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.profile-btn-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ffffff;
}

@media (max-width: 640px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    .profile-name-row {
        justify-content: center;
    }
    .profile-meta {
        justify-content: center;
    }
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .profile-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .profile-btn-back,
    .profile-btn-action,
    .profile-btn-logout {
        justify-content: center;
    }
}

/* ==========================================================================
   SoundTeknik Native Form Component System & Pure CSS Floating Labels
   ========================================================================== */

.form-floating-group {
    position: relative;
    margin-bottom: 1.125rem;
    width: 100%;
}

.form-floating-input {
    display: block;
    width: 100%;
    height: 52px;
    padding: 1.25rem 0.875rem 0.375rem 0.875rem;
    font-size: 0.9375rem;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.4;
    color: #f8fafc;
    background-color: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
}

.form-floating-input::placeholder {
    color: transparent !important;
    opacity: 0 !important;
}

.form-floating-input:hover {
    border-color: rgba(148, 163, 184, 0.38);
}

.form-floating-input:focus {
    border-color: #3b82f6;
    background-color: rgba(15, 23, 42, 0.85);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.form-floating-textarea {
    display: block;
    width: 100%;
    min-height: 90px;
    padding: 1.35rem 0.875rem 0.5rem 0.875rem;
    font-size: 0.9375rem;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.4;
    color: #f8fafc;
    background-color: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    outline: none;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
}

.form-floating-textarea::placeholder {
    color: transparent !important;
    opacity: 0 !important;
}

.form-floating-textarea:hover {
    border-color: rgba(148, 163, 184, 0.38);
}

.form-floating-textarea:focus {
    border-color: #3b82f6;
    background-color: rgba(15, 23, 42, 0.85);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.form-floating-label {
    position: absolute;
    left: 0.875rem;
    top: 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #94a3b8;
    pointer-events: none;
    transform-origin: 0 0;
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), top 0.18s cubic-bezier(0.16, 1, 0.3, 1), font-size 0.18s cubic-bezier(0.16, 1, 0.3, 1), color 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    z-index: 1;
}

/* Empty and not focused: label sits in the middle like placeholder */
.form-floating-input:placeholder-shown ~ .form-floating-label,
.form-floating-textarea:placeholder-shown ~ .form-floating-label {
    top: 1rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: #64748b;
}

/* Focused: label floats to the top and highlights */
.form-floating-input:focus ~ .form-floating-label,
.form-floating-textarea:focus ~ .form-floating-label {
    top: 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #60a5fa;
}

/* Floating Select */
.form-floating-select {
    display: block;
    width: 100%;
    height: 52px;
    padding: 1.25rem 2.25rem 0.375rem 0.875rem;
    font-size: 0.9375rem;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.4;
    color: #f8fafc;
    background-color: rgba(15, 23, 42, 0.65);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
}

.form-floating-select:hover {
    border-color: rgba(148, 163, 184, 0.38);
}

.form-floating-select:focus {
    border-color: #3b82f6;
    background-color: rgba(15, 23, 42, 0.85);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.form-floating-select:focus ~ .form-floating-label {
    color: #60a5fa;
}

.form-floating-select option {
    background-color: #1e293b;
    color: #f8fafc;
}

/* Fallback healing for legacy .basic-input and .basic-input-label with pure CSS */
.basic-input:not(:placeholder-shown) ~ .basic-input-label,
.basic-input:focus ~ .basic-input-label,
textarea.peer:not(:placeholder-shown) ~ label,
textarea.peer:focus ~ label {
    transform: translateY(-0.9rem) scale(0.8) !important;
    color: #60a5fa !important;
}

/* ==========================================================================
   Searchable Select Dropdown Component
   ========================================================================== */
.searchable-select-container {
    position: relative;
    width: 100%;
}

.searchable-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    padding: 1.25rem 0.875rem 0.375rem 0.875rem;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
    color: #f8fafc;
    background-color: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    outline: none;
    user-select: none;
    box-sizing: border-box;
}

.searchable-select-trigger:hover {
    border-color: rgba(148, 163, 184, 0.4);
}

.searchable-select-trigger:focus,
.searchable-select-trigger.is-open {
    border-color: #3b82f6;
    background-color: rgba(15, 23, 42, 0.85);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.searchable-select-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 8px;
}

.searchable-placeholder {
    color: #64748b;
    font-weight: 400;
    font-size: 0.875rem;
}

.searchable-selected-title {
    color: #f8fafc;
    font-weight: 600;
}

.searchable-chevron-box {
    color: #94a3b8;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.searchable-select-trigger.is-open .searchable-chevron-box {
    transform: rotate(180deg);
    color: #60a5fa;
}

.searchable-dropdown-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 50;
    padding: 8px;
    box-sizing: border-box;
    animation: searchDropdownFadeIn 0.15s ease-out;
}

@keyframes searchDropdownFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.searchable-search-box {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.searchable-search-icon {
    position: absolute;
    left: 10px;
    color: #64748b;
    pointer-events: none;
}

.searchable-search-field {
    width: 100%;
    height: 38px;
    padding: 6px 32px 6px 34px;
    font-size: 0.875rem;
    color: #f8fafc;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}

.searchable-search-field:focus {
    border-color: #3b82f6;
    background: rgba(30, 41, 59, 0.95);
}

.searchable-search-field::placeholder {
    color: #64748b;
}

.searchable-clear-btn {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.searchable-clear-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.1);
}

.searchable-options-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.searchable-options-list::-webkit-scrollbar {
    width: 6px;
}
.searchable-options-list::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.25);
    border-radius: 4px;
}

.searchable-option-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.12s ease;
    user-select: none;
}

.searchable-option-item:hover,
.searchable-option-item.is-focused {
    background-color: rgba(59, 130, 246, 0.18);
}

.searchable-option-item.is-selected {
    background-color: rgba(37, 99, 235, 0.22);
}

.searchable-option-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #f1f5f9;
}

.searchable-option-item.is-selected .searchable-option-name {
    color: #93c5fd;
    font-weight: 600;
}

.searchable-option-check {
    display: none;
    color: #60a5fa;
}

.searchable-option-item.is-selected .searchable-option-check {
    display: flex;
}

.searchable-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 12px;
    color: #64748b;
    gap: 8px;
    font-size: 0.875rem;
    text-align: center;
}

.floating-active {
    top: 0.4rem !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    color: #60a5fa !important;
}

/* ==========================================================================
   Repeat Job Card Component
   ========================================================================== */
.job-repeat-card {
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.job-repeat-card:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(96, 165, 250, 0.35);
}

.job-repeat-card.is-active {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(59, 130, 246, 0.45);
}

.job-repeat-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    width: 100%;
    gap: 12px;
    user-select: none;
}

.job-repeat-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.job-repeat-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2563eb;
    border-radius: 4px;
}

.job-repeat-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.job-repeat-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #f1f5f9;
}

.job-repeat-desc {
    font-size: 11.5px;
    color: #94a3b8;
}

.job-repeat-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.35);
    white-space: nowrap;
}

/* ==========================================================================
   Modern Dedicated Form Page Components (Vanilla CSS Framework)
   ========================================================================== */
.form-page-wrapper {
    max-width: 760px;
    margin: 16px auto 32px auto;
    padding: 0 12px;
    box-sizing: border-box;
}

.form-card {
    background: #111827;
    background: linear-gradient(180deg, #151d2f 0%, #0f172a 100%);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
    overflow: hidden;
    margin-bottom: 24px;
}

.form-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 26px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    position: relative;
}

.form-card-header.header-blue {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0.03) 60%, transparent 100%);
}
.form-card-header.header-green {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.03) 60%, transparent 100%);
}
.form-card-header.header-indigo {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.03) 60%, transparent 100%);
}
.form-card-header.header-amber {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.03) 60%, transparent 100%);
}
.form-card-header.header-teal {
    background: linear-gradient(90deg, rgba(20, 184, 166, 0.15) 0%, rgba(20, 184, 166, 0.03) 60%, transparent 100%);
}

.form-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.form-card-icon.icon-blue {
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}
.form-card-icon.icon-green {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}
.form-card-icon.icon-indigo {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #818cf8;
}
.form-card-icon.icon-amber {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}
.form-card-icon.icon-teal {
    background: rgba(20, 184, 166, 0.2);
    border: 1px solid rgba(20, 184, 166, 0.4);
    color: #2dd4bf;
}

.form-card-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.01em;
}

.form-card-subtitle {
    margin: 4px 0 0 0;
    font-size: 0.825rem;
    color: #94a3b8;
}

.form-card-body {
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-2col-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 1.125rem;
}

.form-2col-grid .form-floating-group {
    margin-bottom: 0 !important;
}

@media (max-width: 640px) {
    .form-2col-grid {
        grid-template-columns: 1fr;
    }
    .form-card-header {
        padding: 18px 20px;
    }
    .form-card-body {
        padding: 18px 20px;
    }
}

.form-actions-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.form-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 26px 24px 26px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(15, 23, 42, 0.4);
}

.form-page-wrapper {
    max-width: 840px;
    margin: 20px auto 40px auto;
    padding: 0 16px;
    box-sizing: border-box;
    width: 100%;
}

.form-card-body .form-floating-group {
    margin-bottom: 0;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    line-height: 1.25;
    box-sizing: border-box;
    user-select: none;
}

.btn-modern svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-modern:active {
    transform: scale(0.98);
}

.btn-modern-cancel {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #cbd5e1 !important;
}
.btn-modern-cancel:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

.btn-modern-blue {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border: 1px solid rgba(96, 165, 250, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45) !important;
}
.btn-modern-blue:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.65) !important;
    transform: translateY(-1px);
}

.btn-modern-green {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    border: 1px solid rgba(52, 211, 153, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.45) !important;
}
.btn-modern-green:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.65) !important;
    transform: translateY(-1px);
}

.btn-modern-indigo {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
    border: 1px solid rgba(129, 140, 248, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.45) !important;
}
.btn-modern-indigo:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%) !important;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.65) !important;
    transform: translateY(-1px);
}

.btn-modern-amber {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    border: 1px solid rgba(251, 191, 36, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.45) !important;
}
.btn-modern-amber:hover {
    background: linear-gradient(135deg, #b45309 0%, #92400e 100%) !important;
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.65) !important;
    transform: translateY(-1px);
}

.btn-modern-teal {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%) !important;
    border: 1px solid rgba(45, 212, 191, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.45) !important;
}
.btn-modern-teal:hover {
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%) !important;
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.65) !important;
    transform: translateY(-1px);
}

.btn-modern-danger {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
    border: 1px solid rgba(251, 113, 133, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.45) !important;
}
.btn-modern-danger:hover {
    background: linear-gradient(135deg, #be123c 0%, #9f1239 100%) !important;
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.65) !important;
    transform: translateY(-1px);
}

.alert-modern-success {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34d399;
    font-size: 0.875rem;
    margin-bottom: 18px;
}

.alert-modern-danger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.25);
    color: #fb7185;
    font-size: 0.875rem;
    margin-bottom: 18px;
}


