/* ============================= */
/* MODERN APEX THEME (PYTHON STYLE) */
/* ============================= */

/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* Global */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f7fb;
    color: #2d3436;
}

.t-Body {
    background-color: #f5f7fb;
}

/* ============================= */
/* HEADER */
/* ============================= */
.t-Header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

/* ============================= */
/* SIDEBAR NAVIGATION */
/* ============================= */
.t-TreeNav {
    background-color: #1e293b;
}

.t-TreeNav .a-TreeView-label {
    color: #cbd5e1;
    font-size: 14px;
}

.t-TreeNav .a-TreeView-content:hover {
    background-color: #475569;
}

.t-TreeNav .is-selected > .a-TreeView-content {
    background-color: #334155;
    border-radius: 6px;
}

/* ============================= */
/* REGIONS / CARDS */
/* ============================= */
.t-Region {
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: none;
}

.t-Region-header {
    font-weight: 600;
    color: #1e293b;
}

/* ============================= */
/* REPORTS / INTERACTIVE GRID */
/* ============================= */
.t-Report, .a-IRR-tableContainer {
    background: #ffffff;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.a-IRR-table th {
    background-color: #f1f5f9;
    color: #334155;
    font-weight: 600;
}

.a-IRR-table td {
    padding: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.a-IRR-table tr:hover td {
    background-color: #f8fafc;
}

/* ============================= */
/* FORMS */
/* ============================= */
.t-Form-region {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.t-Form-label {
    font-weight: 500;
    color: #475569;
}

.t-Form-inputContainer input,
.t-Form-inputContainer select,
.t-Form-inputContainer textarea {
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    padding: 8px;
}

.t-Form-inputContainer input:focus,
.t-Form-inputContainer select:focus,
.t-Form-inputContainer textarea:focus {
    border-color: #2563eb;
    outline: none;
}

/* ============================= */
/* BUTTONS */
/* ============================= */
.t-Button {
    border-radius: 6px;
}

.t-Button--hot {
    background-color: #2563eb;
    border: none;
    color: #ffffff;
}

.t-Button--hot:hover {
    background-color: #1d4ed8;
}

/* ============================= */
/* SMALL UI ENHANCEMENTS */
/* ============================= */
* {
    transition: all 0.2s ease-in-out;
}

/* ========================================= */
/* ✅ FINAL APEX FLOATING LABEL FIX */
/* ========================================= */

/* ========================================= */
/* 🔥 FORCE CLEAN FLOAT LABEL (NO OVERLAP) */
/* ========================================= */

/* Container */
.t-Form-fieldContainer--floatingLabel {
    position: relative;
    margin-top: 18px;
}

/* INPUT */
.t-Form-fieldContainer--floatingLabel input,
.t-Form-fieldContainer--floatingLabel select,
.t-Form-fieldContainer--floatingLabel textarea {

    padding: 18px 10px 6px 10px !important;
    background-color: #ffffff;
    position: relative;
    z-index: 1;
}

/* ✅ LABEL ALWAYS ON TOP (NO MERGE ISSUE) */
.t-Form-fieldContainer--floatingLabel .t-Form-label {

    position: absolute;
    top: -8px;   /* always above */
    left: 8px;
    font-size: 11px;
    color: #2563eb;
    background: #ffffff;
    padding: 0 4px;
    z-index: 2;
}

/* Focus style */
.t-Form-fieldContainer--floatingLabel input:focus,
.t-Form-fieldContainer--floatingLabel select:focus,
.t-Form-fieldContainer--floatingLabel textarea:focus {

    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* Required */
.t-Form-label .u-Required {
    color: #dc2626;
}

/* ========================================= */
/* 🔵 FORCE ALL LABELS TO BLUE */
/* ========================================= */

/* All labels */
.t-Form-label {
    color: #2563eb !important;   /* Blue */
    font-weight: 500;
}

/* Floating labels */
.t-Form-fieldContainer--floatingLabel .t-Form-label {
    color: #2563eb !important;
}

/* On focus */
.t-Form-fieldContainer--floatingLabel.apex-item-wrapper--is-focused .t-Form-label {
    color: #2563eb !important;
}

/* When value exists */
.t-Form-fieldContainer--floatingLabel.apex-item-wrapper--has-value .t-Form-label {
    color: #2563eb !important;
}

/* Required star */
.t-Form-label .u-Required {
    color: #2563eb !important;
}

/* Optional: subtle focus border to match blue theme */
.t-Form-fieldContainer--floatingLabel input:focus,
.t-Form-fieldContainer--floatingLabel select:focus,
.t-Form-fieldContainer--floatingLabel textarea:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
    }

/* ========================================= */
/* 🔥 FINAL PERFECT ICON FIX (INSIDE FIELD) */
/* ========================================= */

/* Make correct parent relative */
.t-Form-inputContainer .t-Form-itemWrapper {
    position: relative;
}

/* ICON (LEFT) – stay inside input */
.t-Form-inputContainer .t-Form-itemWrapper .t-Icon,
.t-Form-inputContainer .t-Form-itemWrapper .fa {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: #94a3b8;
    pointer-events: none;
}

/* INPUT PADDING */
.t-Form-inputContainer input[type="text"],
.t-Form-inputContainer input[type="password"] {
    padding-left: 2px !important;
}

/* Ensure input takes full width */
.t-Form-inputContainer input {
    width: 100%;
}