
:root {
    --color-primary: #141414;
    --color-secondary: #FAFAFA;
    --color-success: #2ECC71;
    --color-danger: #E03131;
    --color-border-light: #141414;
    --color-border-dark: #D9D9D9;
}


@font-face {
    font-family: 'Noto';
    src: url('../fonts/Noto/NotoSans-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900; 
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Teko';
    src: url('../fonts/Teko/Teko-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Noto', sans-serif !important;
}

a {
    color: #232323;
}

.link-red {
    cursor: pointer;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1rem;
}

.link-red:hover {
    color: var(--color-danger) !important;
    text-decoration: none;
}

.link-red:visited {
    color: var(--color-primary);
    text-decoration: none;
}

.link-red:active {
    color: var(--color-danger);
    text-decoration: none;
}

.button-red {
    background: var(--color-danger);
    color: var(--color-secondary);
    border: none;
    border-radius: 0.5rem;
    padding-top: 0.4rem;
    padding-bottom: 0.6rem;
    padding-inline: 0.6rem;
    text-decoration: none;
    transition: all 0.1s ease-in-out;
}

.button-red:hover {
    transform: translateY(-1px);
}

.button-red:active {
    transform: translateY(1px);
}

.button-primary {
    flex-shrink: 1;
    background: var(--color-primary);
    color: var(--color-secondary);
    border: none;
    font-weight: 600;
    border-radius: 0.3rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    padding-inline: 1.8rem;
    transition: all 0.1s ease-in-out;
    text-decoration: none;
}

.button-primary:hover {
    transform: translateY(-1px);
}

.button-primary:active {
    transform: translateY(1px);
}

.button-primary-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--color-primary);
    font-weight: 600;
    border: 1px solid var(--color-primary);
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    padding-inline: 1.8rem;
    transition: all 0.1s ease-in-out;
    text-decoration: none;
}

.button-primary-outline:hover {
    background: var(--color-primary);
    color: var(--color-secondary);
    font-weight: 600;
    border: 1px solid var(--color-primary);
    transform: translateY(-1px);
    cursor: pointer;
}

.button-primary-outline:active {
    background: var(--color-primary);
    color: var(--color-secondary);
    font-weight: 600;
    border: 1px solid var(--color-primary);
    transform: translateY(1px);
}

.button-primary-outline:hover .text-muted {
    color: #8a8a8a !important;
}

.button-primary-outline:active .text-muted {
    color: #8a8a8a !important;
}

.button-primary-outline-solid {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-secondary);
    color: var(--color-primary);
    font-weight: 600;
    border: 1px solid var(--color-primary);
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    padding-inline: 1.8rem;
    transition: all 0.1s ease-in-out;
    text-decoration: none;
}

.button-primary-outline-solid:hover {
    background: var(--color-primary);
    color: var(--color-secondary);
    font-weight: 600;
    border: 1px solid var(--color-primary);
    transform: translateY(-1px);
    cursor: pointer;
}

.button-primary-outline-solid:active {
    background: var(--color-primary);
    color: var(--color-secondary);
    font-weight: 600;
    border: 1px solid var(--color-primary);
    transform: translateY(1px);
}

.button-primary-outline-solid:hover .text-muted {
    color: #8a8a8a !important;
}

.button-primary-outline-solid:active .text-muted {
    color: #8a8a8a !important;
}

.button-checkbox + .button-checkbox-blue {
    background: transparent;
    color: var(--color-primary);
    font-weight: 600;
    border-radius: 0.4rem;
    border: 1px solid var(--color-primary);
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    padding-inline: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.1s ease-in-out;
}

.button-checkbox:checked + .button-checkbox-blue {
    background: var(--color-primary);
    color: var(--color-secondary);
    font-weight: 600;
    border: 1px solid var(--color-primary);
}

.radio-button {
    display: none;
}

.radio-button + .radio-button-primary {
    background: transparent;
    color: var(--color-primary);
    font-weight: 600;
    border-radius: 0.4rem;
    border: 1px solid #ababab;
    padding: 0.4rem 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.1s ease-in-out;
    margin-right: 0.4rem;
}

.radio-button:checked + .radio-button-primary {
    background: #0795E8;
    color: white;
    font-weight: 600;
    border: 1px solid #0795E8;
}

.radio-group {
    display: inline-flex;
}


.nav-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 1s cubic-bezier( 0.23, 1, 0.32, 1 );
}

.nav-dropdown.active {
    padding-top: 1rem !important;
    max-height: 270px;
}

.nav-dropdown a {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 1s cubic-bezier( 0.23, 1, 0.32, 1 ),
                transform 1s cubic-bezier( 0.23, 1, 0.32, 1 );
}

.nav-dropdown.active a {
    transform: translateY(0px);
    opacity: 100;
}

.nav-dropdown.active a:nth-child(1) { transition-delay: 0.1s; }
.nav-dropdown.active a:nth-child(2) { transition-delay: 0.2s; }
.nav-dropdown.active a:nth-child(3) { transition-delay: 0.3s; }
.nav-dropdown.active a:nth-child(4) { transition-delay: 0.4s; }
.nav-dropdown.active a:nth-child(5) { transition-delay: 0.5s; }
.nav-dropdown.active a:nth-child(6) { transition-delay: 0.6s; }
.nav-dropdown.active a:nth-child(7) { transition-delay: 0.7s; }
.nav-dropdown.active a:nth-child(8) { transition-delay: 0.8s; }

.hamburger-menu-path {
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 1s cubic-bezier( 0.23, 1, 0.32, 1 );
}

.hamburger-menu-path.active {
    transform: scaleX(0.75);
}

.hamburger-menu-path-two {
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 1s cubic-bezier( 0.23, 1, 0.32, 1 );
}

.hamburger-menu-path-two.active {
    transform: scaleX(0.5);
}

.divider {
    width: 100%;
    height: 2px;
    background: #ababab;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.input-text {
    width: 100%;
    padding: 0.3rem;
    border: 1px solid #ababab;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.input-text:hover {
    border: 1px solid var(--color-primary);
}

.input-text:focus {
    outline: 1px solid solid var(--color-primary);
}

.input-text:focus-visible {
    outline: 1px solid solid var(--color-primary);
}

.input-text:focus-within {
    outline: 1px solid solid var(--color-primary);
}

.input-text:active {
    outline: 1px solid solid var(--color-primary);
}

.input-text:autofill {
    background-color: var(--color-secondary) !important;
}

.input-text:disabled {
    width: 100%;
    padding: 0.3rem;
    background: #eeeded;
    border: 1px solid #ababab;
}

.input-text-display {
    width: 100%;
    padding: 0;
    border-radius: 0.4rem;
    border: none;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.input-text-display:focus {
    outline: none;
}

.input-text-display:focus-visible {
    outline: none;
}

.input-text-display:disabled {
    width: 100%;
    padding: 0.3rem;
    border-radius: 0.4rem;
}

.input-text.error {
    border: 1px solid #e52e2e;
}

.input-text.error:focus {
    outline: none;
}

.input-text.error:focus-visible {
    outline: none;
}

.checkbox-wrapper {
    display: inline-flex;
    align-items: start;
    position: relative;
}

.checkbox-wrapper.hidden {
    display: block;
    opacity: 0;
    visibility: hidden;
    height: 0;
}


/* Hide the native checkbox appearance */
.input-check {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid #ababab;
    border-radius: 0.2rem;
    background: white;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* Checked background */
.input-check:checked {
    background: #0795E8;
    border-color: #0795E8;
}

/* Position the SVG over the checkbox */
.svg-check {
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Let clicks go through */
}

/* Style and animate the checkmark path */
.check-path {
    stroke-dasharray: 0; /* total length of the path */
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.5s ease;
}

/* Animate when checked */
.input-check:checked + .svg-check .check-path {
    stroke-dashoffset: 0;
}

.error-text-plain {
    color: #ef1d1d;
}

.error-text {
    color: #ef1d1d;
}

.error-text::before {
    content: "";
    display: inline-block;
    color: #ef1d1d;
    width: 1rem;
    height: 1rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg%20%20xmlns=%22http://www.w3.org/2000/svg%22%20%20width=%2224%22%20%20height=%2224%22%20%20viewBox=%220%200%2024%2024%22%20%20fill=%22none%22%20%20stroke=%22red%22%20%20stroke-width=%222%22%20%20stroke-linecap=%22round%22%20%20stroke-linejoin=%22round%22%20%20class=%22icon%20icon-tabler%20icons-tabler-outline%20icon-tabler-x%22%3E%3Cpath%20stroke=%22none%22%20d=%22M0%200h24v24H0z%22%20fill=%22none%22/%3E%3Cpath%20d=%22M18%206l-12%2012%22%20/%3E%3Cpath%20d=%22M6%206l12%2012%22%20/%3E%3C/svg%3E");
    vertical-align: middle;
}

.error-text-info {
    color: #ef1d1d;
}

.error-text-info::after {
    content: "";
    display: inline-block;
    color: #ef1d1d;
    margin-left: 0.3rem;
    width: 1rem;
    height: 1rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ef1d1d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='icon icon-tabler icon-tabler-info-circle'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0' /%3E%3Cpath d='M12 9h.01' /%3E%3Cpath d='M11 12h1v4h1' /%3E%3C/svg%3E");
    vertical-align: middle;
}

.fadeInBottom {
    animation: fadeInBottom 0.4s ease-in-out;
}

@keyframes fadeInBottom {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-profile {
    padding-inline: 0.5rem;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.navbar-profile:hover {
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.navbar-profile:active {
    background: rgba(0, 0, 0, 0.08);
    transform: translateY(2px) scale(0.98);
}

.navbar-profile svg path {
    fill: transparent;
    transition: fill 0.2s ease-in-out;
}

.navbar-profile:hover svg path {
    fill: #2f2f2f;
}

.sidebar-container {
    display: flex;
    position: sticky;
    top: 0;
    width: 200px;
    min-width: 200px;
    flex-direction: column;
    background-color: #ffffff;
    align-self: flex-start; /* important inside flex layout */
    height: fit-content;
}

.sidebar-button {
    padding: 1rem 1rem;
    transition: 0.1s ease-in-out;
    display: flex;
    justify-content: space-between;
}

.sidebar-button a {
    text-decoration: none;
}

.sidebar-button:hover {
    backdrop-filter: brightness(0.9);
    cursor: pointer;
    transform: translateY(-2px);
}

.sidebar-button:active {
    backdrop-filter: brightness(0.85);
    transform: translateY(0px);
}

.sidebar-button.selected {
    background-color: #262626;
    color: #fff;
    border-right: 4px solid #0077cc;
}

.sidebar-button.selected.inactive {
    background-color: #262626;
    color: #fff;
    border-right: none;
}

.sidebar-button.selected a {
    color: #fff;
}

.sub-sidebar-button {
    padding: 1rem 1rem;
    transition: 0.1s ease-in-out;
    display: flex;
    justify-content: space-between;
    background-color: #cecece;
}

.sub-sidebar-button a {
    text-decoration: none;
}

.sub-sidebar-button:hover {
    backdrop-filter: brightness(0.9);
    cursor: pointer;
    transform: translateY(-2px);
}

.sub-sidebar-button:active {
    backdrop-filter: brightness(0.85);
    transform: translateY(0px);
}

.sub-sidebar-button.selected {
    background-color: #262626;
    color: #fff;
    border-right: 4px solid #0077cc;
}

.sub-sidebar-button.selected a {
    color: #fff;
}

.dashboard-page {
    flex-grow: 1;
    border-left: 1px solid #ababab;
    min-height: 100%;
}

.dt-length {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dt-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dt-input {
    outline-offset: 0 !important;
}

.spinning-svg svg {
    animation: spin 1s linear infinite;
}

.error-block {
    background-color: #ef1d1d;
    padding: 1rem 2rem;
    text-align: center;
}

.error-block p {
    margin: 0;
    color: #ffffff;
}

.animated-bg {
    animation: gridDrift 20s linear infinite;
}

@keyframes gridDrift {
    from { background-position: 0 0; }
    to   { background-position: 80px 80px; }
}


/* Diagonal grid + radial mask (hero DNA) */
.animated-bg {
    position: absolute;
    z-index: -1;
    top: 0;
    inset: 0;
    background-image:
            linear-gradient(45deg, transparent 49%, #1f2933 49%, #1f2933 51%, transparent 51%),
            linear-gradient(-45deg, transparent 49%, #1f2933 49%, #1f2933 51%, transparent 51%);
    background-size: 48px 48px;
    opacity: 0.10;

    mask-image: radial-gradient(
            ellipse 80% 60% at 30% 20%,
            #000 40%,
            transparent 75%
    );

    pointer-events: none;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}


/* ============================= */
/* PAGE BACKGROUND */
/* ============================= */
.dashboard-page {
    background: #f3f4f6;
    min-height: 100vh;
}

/* ============================= */
/* TOOLBAR */
/* ============================= */
.page-toolbar {
    background: #ffffff;
    padding: 20px 28px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-toolbar h3 {
    margin: 0;
    font-weight: 600;
    color: #111827;
}

/* Dark Button */
.table-action-btn {
    display: inline-block;
    padding: 10px 22px;
    background: #111827;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
}

.table-action-btn:hover {
    background: #0f172a;
    transform: translateY(-2px);
}

