/* ==========================================================================
   SIAPP PG — brand tokens & small custom pieces
   ========================================================================== */

:root {
    --gk-yellow: #F6C915;      /* topbar accent */
    --gk-yellow-dark: #E4B300; /* button hover */
    --gk-green: #2E6E52;       /* sidebar */
    --gk-green-dark: #1F4E39;  /* active sidebar item / dark green text */
    --gk-bg: #EAEAEA;          /* page background */
}

body {
    background: var(--gk-bg);
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* Sidebar active item styling matching screenshot */
.nav-link.is-active {
    background-color: var(--gk-green-dark);
}
.nav-link {
    transition: background-color 0.15s ease;
}

/* Uniform Form Inputs, Textareas, and Select Elements Border Styling (Excludes TomSelect Inner Inputs) */
input[type="text"]:not(.ts-control input):not(.ts-dropdown input),
input[type="number"]:not(.ts-control input),
input[type="email"]:not(.ts-control input),
input[type="password"]:not(.ts-control input),
input[type="date"]:not(.ts-control input),
input[type="file"]:not(.ts-control input),
textarea,
select:not(.ts-hidden) {
    border: 1px solid #d1d5db !important; /* border-gray-300 */
    border-radius: 0.5rem !important;      /* rounded-lg */
    padding: 0.5rem 0.75rem !important;   /* px-3 py-2 */
    font-size: 0.875rem !important;        /* text-sm */
    line-height: 1.25rem !important;
    background-color: #ffffff !important;
    color: #111827 !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

/* Global Disabled Form Elements Background & Cursor Styling */
input:disabled,
select:disabled,
textarea:disabled,
input[disabled],
select[disabled],
textarea[disabled] {
    background-color: #f3f4f6 !important; /* Light Gray Background */
    color: #6b7280 !important;            /* Muted Gray Text */
    border-color: #e5e7eb !important;        /* Subtle Gray Border */
    cursor: not-allowed !important;
    opacity: 0.85 !important;
    box-shadow: none !important;
}

input[type="text"]:not(.ts-control input):focus,
input[type="number"]:not(.ts-control input):focus,
input[type="email"]:not(.ts-control input):focus,
input[type="password"]:not(.ts-control input):focus,
input[type="date"]:not(.ts-control input):focus,
input[type="file"]:not(.ts-control input):focus,
textarea:focus,
select:not(.ts-hidden):focus {
    border-color: var(--gk-green) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(46, 110, 82, 0.2) !important;
}

/* Reset inner TomSelect input styles so TomSelect stays completely untouched */
.ts-control input,
.ts-dropdown input {
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    min-height: auto !important;
}

/* Chart canvases need a fixed-height parent or Chart.js grows forever. */
.chart-shell {
    position: relative;
    height: 260px;
    width: 100%;
}

/* Simple semicircle progress arc */
.progress-arc svg {
    overflow: visible;
}
.progress-arc .arc-bg {
    fill: none;
    stroke: #DCEBFF;
    stroke-width: 14;
    stroke-linecap: round;
}
.progress-arc .arc-value {
    fill: none;
    stroke: #8FBFFA;
    stroke-width: 14;
    stroke-linecap: round;
    transition: stroke-dasharray 0.6s ease;
}

/* Keyboard focus visibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--gk-green);
    outline-offset: 2px;
}
