/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BASE */
/* html,
body {
    height: 100%;
} */

:root {
    --z-base: 1;
    --z-dropdown: 20;
    --z-floating: 30;
    --z-floating-high: 35;
    --z-navbar: 40;
    --z-toast: 50;
    --z-modal: 60;
    --z-page-transition: 100;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: radial-gradient(circle at 50% 20%, rgba(127, 255, 159, 0.08), transparent 60%), #0c1410;
    color: #d6e5d8;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 12vh;
}

body.page-transition-active {
    cursor: progress;
}

body.page-transition-active .page-content,
body.page-transition-active .navbar,
body.page-transition-active .footer {
    pointer-events: none;
}

.page-transition {
    position: fixed;
    inset: 0;
    z-index: var(--z-page-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.12s ease-out;
    will-change: opacity;
}

.page-transition.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.page-transition-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 30%, rgba(127, 255, 159, 0.14), transparent 42%),
        rgba(6, 12, 9, 0.82);
}

.page-transition-panel {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 240px;
    padding: 18px 20px;
    border: 1px solid rgba(127, 255, 159, 0.16);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(24, 33, 28, 0.96), rgba(12, 18, 15, 0.96));
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.45),
        0 0 28px rgba(80, 255, 160, 0.12);
    transform: translateY(8px) scale(0.985);
    opacity: 0.96;
    transition:
        transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.18s ease-out;
    will-change: transform, opacity;
}

.page-transition.is-visible .page-transition-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.page-transition-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(127, 255, 159, 0.12);
    border-right-color: rgba(127, 255, 159, 0.34);
    border-top-color: #7fff9f;
    border-radius: 50%;
    box-shadow:
        0 0 18px rgba(127, 255, 159, 0.18),
        inset 0 0 10px rgba(127, 255, 159, 0.06);
    animation: pageTransitionSpin 0.68s linear infinite;
    flex: 0 0 auto;
    will-change: transform;
}

.page-transition-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.page-transition-copy strong {
    color: #eefdf1;
    font-size: 15px;
    letter-spacing: 0.4px;
}

.page-transition-copy span {
    color: #9fbba4;
    font-size: 13px;
}

@keyframes pageTransitionSpin {
    to {
        transform: rotate(360deg);
    }
}

/* CONTAINER */
.container {
    width: 90%;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 120px;
}

/* HOME */
.home-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto 0;
    padding-bottom: 90px;
    padding: 30px;
    position: relative;
    z-index: 1;
    border-radius: 12px;
    background: linear-gradient(145deg, #1a1f1c, #111614);
    box-shadow:
        0 25px 30px rgba(0, 0, 0, 0.75),
        0 0 8px rgba(80, 255, 160, 0.25),
        0 0 20px rgba(80, 255, 160, 0.15);
    overflow: hidden;
    isolation: isolate;
}

.home-container::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -60px;
    height: 80px;
}

.home-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: -140%;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(
        120deg,
        transparent 35%,
        rgba(120, 255, 180, 0.05) 50%,
        transparent 65%
    );
    animation: sheenSweep 18s ease-in-out infinite;
    opacity: 0.7;
    filter: blur(10px);
}

@keyframes sheenSweep {
    0% {
        left: -120%;
    }

    30% {
        left: 120%;
    }

    100% {
        left: 120%;
    }
}

.table-info {
    margin-bottom: 18px;
    padding: 10px 4px;
}

.table-info h2 {
    font-size: 25px;
    color: #7fff9f;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    text-align: center;
}

.table-info p {
    font-size: 16px;
    color: #9fbba4;
    line-height: 1.4;
    text-align: center;
}

.home-container input:focus,
.home-container select:focus,
.home-container button:focus {
    outline: none;
    border: 1px solid #2d3f31;
    box-shadow: 0 0 6px rgba(127, 255, 159, 0.3);
}

.table-header {
    display: grid;
    grid-template-columns: 54px minmax(180px, 1.55fr) minmax(120px, 0.85fr) minmax(170px, 1.15fr) minmax(120px, 0.95fr) 86px 72px 132px;
    padding: 10px 16px 4px;
    width: 100%;
    min-width: 0;
    font-size: 12px;
    letter-spacing: 1.2px;
    color: #7fff9f;
    opacity: 0.9;
    column-gap: 12px;
    align-items: center;
}

.table-row div {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.table-row {
    display: grid;
    grid-template-columns: 54px minmax(180px, 1.55fr) minmax(120px, 0.85fr) minmax(170px, 1.15fr) minmax(120px, 0.95fr) 86px 72px 132px;
    align-items: center;
    position: relative;
    width: 100%;
    min-width: 0;
    background: linear-gradient(145deg, #1c2420, #141a17);
    border-radius: 10px;
    padding: 14px 16px;
    min-height: 62px;
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: 0.2s;
    column-gap: 12px;
    content-visibility: visible;
    contain-intrinsic-size: 76px;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    position: relative;
    padding: 16px;
    background: rgba(25, 30, 28, 0.95);
    border: 1px solid rgba(127, 255, 159, 0.08);
    border-radius: 10px;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.filter-select,
.filter-input {
    background: #121715;
    border: 1px solid #2a3a32;
    color: #d6ffe2;
    height: 42px;
    padding: 10px 14px;
    border-radius: 6px;
    min-width: 160px;
    transition: 0.2s;
}

.filter-input {
    text-align: left !important;
    padding-left: 14px !important;
    width: 100%;
    box-sizing: border-box;
}

.filter-select:hover,
.filter-input:hover {
    border-color: #3f7d50;
}

.filter-bar input:focus-visible,
.filter-bar select:focus-visible {
    outline: none;
    border-color: #7fff9f;
    box-shadow: 0 0 6px rgba(127, 255, 159, 0.25);
}

.filter-reset {
    margin-left: auto;
    height: 42px;
    padding: 0 14px;
    background: linear-gradient(145deg, #1a1f1c, #131916);
    border: 1px solid #2a3a32;
    color: #bd2323;
    text-shadow:
        0 0 2px rgba(255, 120, 120, 0.6),
        0 0 4px rgba(255, 120, 120, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.filter-reset:hover {
    background: #2a1f1f;
    border-color: #ff6b6b;
    color: #ff9b9b;
    box-shadow: 0 0 8px rgba(255, 100, 100, 0.5);
    display: inline-block;
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
}

.filter-reset:focus:not(:focus-visible) {
    box-shadow: 0 0 8px rgba(255, 100, 100, 0.5);
}

.filter-group {
    position: relative;
    text-align: left;
}

.filter-group:focus-within {
    z-index: var(--z-dropdown);
}

.filter-dropdown {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: #121715;
    border: 1px solid #2a3a32;
    border-radius: 6px;
    max-height: 180px;
    overflow-y: auto;
    display: none;
    z-index: var(--z-dropdown);
}

.dropdown-item {
    display: block;
    text-align: left;
    padding: 10px;
    cursor: pointer;
    color: #cde6d0;
}

.dropdown-item:hover {
    background: #1f2a25;
}

.filter-dropdown::-webkit-scrollbar {
    width: 6px;
}

.filter-dropdown::-webkit-scrollbar-thumb {
    background: #2a3a32;
    border-radius: 3px;
}

#regimentSearch {
    text-align: left !important;
    padding-left: 14px;
}

.table-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    min-width: 0;
    min-height: 0;
    position: relative;
    overflow: visible;
    background: rgba(15, 20, 18, 0.9);
    border: 1px solid rgba(127, 255, 159, 0.08);
    border-radius: 10px;
    padding: 14px;
}

.table-container::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(127, 255, 159, 0.05);
    pointer-events: none;
}

.table-row:hover {
    background: linear-gradient(145deg, #1d2a23, #141d18);
    border-color: rgba(127, 255, 159, 0.15);
    transform: translateY(-2px);
    z-index: var(--z-floating);
}

.table-row:focus-within {
    z-index: var(--z-floating);
}

.table-row div {
    color: #d6ffe2;
    font-size: 14px;
}

.table-col-id,
.table-col-listed,
.table-col-info,
.table-col-action {
    display: flex;
    align-items: center;
}

.table-col-id,
.table-col-listed {
    color: #b8cec0;
    font-variant-numeric: tabular-nums;
}

.table-col-info,
.table-col-action {
    justify-content: center;
}

.info-cell {
    position: relative;
    cursor: pointer;
    overflow: visible !important;
    z-index: var(--z-base);
    outline: none;
}

.info-cell:hover,
.info-cell:focus-within {
    z-index: var(--z-floating);
}

.info-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(127, 255, 159, 0.22);
    background: linear-gradient(145deg, #16201b, #101713);
    color: #b9f7ca;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.info-cell:hover .info-trigger,
.info-cell:focus-within .info-trigger {
    border-color: rgba(127, 255, 159, 0.45);
    background: linear-gradient(145deg, #1a2a21, #122019);
    transform: translateY(-1px);
}

.info-tooltip {
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: #0b1912;
    border: 1px solid #2e5d3b;
    border-radius: 10px;
    padding: 12px 13px;
    width: 220px;
    font-size: 12px;
    color: #d6ffe2;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    z-index: var(--z-base);
    white-space: normal;
    line-height: 1.45;
}

.info-cell:hover .info-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.info-cell:focus-within .info-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.order-btn {
    position: relative;
    overflow: hidden;
    padding: 10px 22px;
    border-radius: 8px;
    background: linear-gradient(145deg, #3f7d50, #2f5f45);
    border: 1px solid #5fae78;
    color: #e6fff0;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.18s ease;
}

.order-btn:hover {
    background: linear-gradient(145deg, #5fae78, #3f7d50);
    box-shadow:
        0 0 12px rgba(86, 255, 128, 0.45),
        0 0 25px rgba(89, 255, 130, 0.3);
    transform: translateY(-1px) scale(1.03);
}

.order-btn:active {
    transform: translateY(1px) scale(0.97);
    box-shadow: 0 0 6px rgba(127, 255, 159, 0.25);
}

.order-btn .icon {
    font-size: 13px;
    opacity: 0.9;
    transition: transform 0.2s ease;
}

.order-btn:hover .icon {
    transform: translateX(4px);
}

.table-header > div:nth-child(6),
.table-row > div:nth-child(6),
.table-header > div:nth-child(7),
.table-row > div:nth-child(7),
.table-header > div:nth-child(8),
.table-row > div:nth-child(8) {
    display: flex;
    align-items: center;
}

.table-header > div:nth-child(6),
.table-header > div:nth-child(7),
.table-header > div:nth-child(8) {
    justify-content: center;
}


.home-container .order-btn,
.home-container .order-btn:focus,
.home-container .order-btn:focus-visible,
.home-container .order-btn:active {
    outline: none !important;
    border: none !important;
    box-shadow: 0 0 10px rgba(127, 255, 159, 0.35);
}

.order-btn {
    -webkit-tap-highlight-color: transparent;
}

.filter-bar .filter-group:first-child {
    flex: 1;
    min-width: 300px;
}

.filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

#itemDropdown {
    position: absolute;
    left: 0;
    width: 100%;
    max-width: 100%;
    background: #121715;
    border: 1px solid #2a3a32;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: var(--z-dropdown);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.command-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
    padding: 18px;
    background: linear-gradient(145deg, #1b2220, #121715);
    border-radius: 10px;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.85),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.command-stat {
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(127, 255, 159, 0.05);
    text-align: center;
    transition: 0.2s;
}

.command-stat:hover {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(127, 255, 159, 0.2);
    transform: translateY(-1px);
}

.stat-label {
    font-size: 13px;
    font-weight: 500;
    color: #7fae8c;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #7fff9f;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-navbar);
    border-bottom: 2px solid #2e5d3b;
    background: rgba(19, 36, 26, 0.95);
    backdrop-filter: blur(8px);
    padding: 16px 32px;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-size: 17px;
    font-weight: 500;
    color: #cde6d0;
    text-decoration: none;
    letter-spacing: 0.6px;
    position: relative;
    padding-bottom: 4px;
    transition: all 0.2s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #7fff9f;
    transition: 0.2s;
}

.nav-links a:hover {
    color: #7fff9f;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-logo a {
    color: #7fff9f;
    text-decoration: none;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #2e5d3b;
}

.nav-user a {
    font-size: 15px;
    color: #cde6d0;
    text-decoration: none;
}

.nav-user a:hover {
    color: #ff7b7b;
}

.btn {
    display: inline-block;
    background: #2e5d3b;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.2s;
}

.btn:hover {
    background: #3f7d50;
}

/* FOOTER */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 15px;
    text-align: center;
    background: rgba(19, 36, 26, 0.9);
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(127, 255, 159, 0.2);
    color: #b7d3bd;
    z-index: var(--z-navbar);
    overflow: hidden;
    animation: footerGlowPulse 4s ease-in-out infinite;
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(127, 255, 159, 0.15), transparent 65%);
    opacity: 0.7;
    pointer-events: none;
}

.footer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(127, 255, 159, 0.9), transparent);
    opacity: 0.5;
}

@keyframes footerGlowPulse {
    0%,
    100% {
        box-shadow: 0 -2px 8px rgba(127, 255, 159, 0.15);
    }

    50% {
        box-shadow: 0 -4px 15px rgba(127, 255, 159, 0.35);
    }
}

.footer-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: auto;
}

.footer a {
    color: #7fff9f;
    text-decoration: none;
    margin: 0 8px;
    transition: 0.2s;
}

.footer a:hover {
    color: #a8ffbf;
    text-shadow: 0 0 6px rgba(127, 255, 159, 0.4);
}

.footer-divider {
    margin: 10px auto;
    width: 60%;
    height: 1px;
    background: linear-gradient(to right, transparent, #2e5d3b, transparent);
}

h1,
h2,
h3 {
    color: #7fff9f;
}

.footer-content h3 {
    font-size: 15px;
    margin-bottom: 5px;
}

.footer-content p {
    margin: 2px 0;
    font-size: 12px;
}

a {
    color: #7fff9f;
}

/* AUTH */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 140px);
}

.login-box {
    background: linear-gradient(to bottom, #13241a, #0f1f17);
    border: 1px solid #2e5d3b;
    border-radius: 12px;
    padding: 40px 60px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.login-box h1 {
    color: #7fff9f;
    font-size: 26px;
    margin-bottom: 10px;
}

.login-sub {
    color: #cde6d0;
    font-size: 16px;
    margin-bottom: 20px;
}

.login-divider {
    height: 1px;
    width: 60%;
    margin: 20px auto;
    background: linear-gradient(to right, transparent, #2e5d3b, transparent);
}

.login-btn {
    display: inline-block;
    padding: 12px 25px;
    background: #2e5d3b;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.2s;
}

.login-btn:hover {
    background: #3f7d50;
    box-shadow: 0 0 10px rgba(127, 255, 159, 0.3);
}

.login-status {
    color: #ff7b7b;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.login-alt {
    color: #9fbba4;
    font-size: 13px;
    text-decoration: none;
}

.login-alt:hover {
    color: #cde6d0;
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0c1410;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2e5d3b, #244a30);
    border-radius: 10px;
    border: 2px solid #0c1410;
}

::-webkit-scrollbar-thumb:hover {
    background: #3f7d50;
    box-shadow: 0 0 6px rgba(127, 255, 159, 0.4);
}

* {
    scrollbar-width: thin;
    scrollbar-color: #2e5d3b #0c1410;
}

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.pagination button {
    background: #121715;
    border: 1px solid #2a3a32;
    color: #d6ffe2;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.pagination button:hover {
    background: #1f2a25;
    border-color: #3f7a57;
    color: #7fff9f;
}

.pagination button:active {
    transform: scale(0.95);
}

.pagination input {
    width: 60px;
    text-align: center;
    background: #121715;
    border: 1px solid #2a3a32;
    color: #d6ffe2;
    padding: 8px;
    border-radius: 6px;
    outline: none;
}

.pagination input:focus {
    border-color: #7fff9f;
    box-shadow: 0 0 6px rgba(127, 255, 159, 0.3);
}

.pagination input::-webkit-outer-spin-button,
.pagination input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* MODALS + TOAST */
.modal {
    display: none;
    position: fixed;
    z-index: var(--z-modal);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(145deg, #0c1f17, #07130f);
    border: 1px solid rgba(0, 255, 120, 0.25);
    box-shadow:
        0 0 25px rgba(0, 255, 120, 0.15),
        inset 0 0 10px rgba(0, 255, 120, 0.05);
    padding: 22px;
    width: 380px;
    border-radius: 14px;
    color: #d7fbe8;
    position: relative;
}

.modal-content h2 {
    margin-bottom: 18px;
    color: #7cffb2;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-content label {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 4px;
    display: block;
}

.modal-content input,
.modal-content select {
    width: 100%;
    margin: 6px 0 14px 0;
    padding: 9px;
    background: #06110d;
    border: 1px solid rgba(0, 255, 120, 0.2);
    border-radius: 6px;
    color: #d7fbe8;
    transition: 0.2s ease;
}

.modal-content input:focus,
.modal-content select:focus {
    outline: none;
    border-color: #38ff9c;
    box-shadow: 0 0 6px rgba(0, 255, 120, 0.2);
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.modal-actions button {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s ease;
}

.modal-actions button:first-child {
    background: linear-gradient(135deg, #1f8f5f, #2ecc71);
    box-shadow: 0 0 10px rgba(0, 255, 120, 0.2);
}

.modal-actions button:first-child:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(0, 255, 120, 0.3);
}

.modal-actions button:last-child {
    background: #2a2a2a;
    color: #bbb;
}

.modal-actions button:last-child:hover {
    background: #3a3a3a;
}

.modal-item-preview {
    background: rgba(0, 255, 120, 0.05);
    border: 1px solid rgba(0, 255, 120, 0.15);
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.preview-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 4px;
}

.preview-line:last-child {
    margin-bottom: 0;
}

.preview-line .icon {
    width: 20px;
    text-align: center;
}

#modalItemName {
    font-weight: 600;
    color: #7cffb2;
}

#toastContainer {
    position: fixed;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-pos-top-right { top: 20px; right: 20px; align-items: flex-end; }
.toast-pos-top-left { top: 20px; left: 20px; align-items: flex-start; }
.toast-pos-bottom-right { bottom: 20px; right: 20px; align-items: flex-end; }
.toast-pos-bottom-left { bottom: 20px; left: 20px; align-items: flex-start; }

.toast-pos-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    align-items: center;
}

.toast-pos-center-top {
    top: 10vh;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}

.toast-pos-center-bottom {
    bottom: 10vh;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}

.toast-pos-center-left {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    align-items: flex-start;
}

.toast-pos-center-right {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    align-items: flex-end;
}

.toast {
    min-width: 250px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    background: #1e1f22;
    color: white;
    border-left: 4px solid #57f287;
    opacity: 0;
    transform: translateY(20px);
    animation: toastIn 0.25s forwards;
}

.toast.success {
    border-left-color: #57f287;
    box-shadow: 0 0 12px rgba(87, 242, 135, 0.35);
}

.toast.error {
    border-left-color: #ed4245;
    box-shadow: 0 0 12px rgba(237, 66, 69, 0.35);
}

.toast.info {
    border-left-color: #5865f2;
    box-shadow: 0 0 12px rgba(88, 101, 242, 0.35);
}

.toast.important {
    font-size: 16px;
    padding: 18px 20px;
    border-left-width: 6px;
    box-shadow: 0 0 25px rgba(0, 255, 120, 0.25);
}

@keyframes toastIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.confirm-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
}

.confirm-box {
    background: linear-gradient(145deg, #0f2a1f, #0b1f17);
    border: 1px solid #1f7a5a;
    border-radius: 14px;
    padding: 30px;
    width: 380px;
    text-align: center;
    box-shadow:
        0 0 25px rgba(87, 242, 135, 0.25),
        0 0 60px rgba(87, 242, 135, 0.1);
}

.confirm-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.confirm-box h2 {
    margin: 10px 0;
    color: #57f287;
}

.confirm-box p {
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.5;
}

.confirm-box button {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

#confirmHoldBtn {
    position: relative;
    overflow: hidden;
    border: none;
    padding: 14px 26px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #2b2b2b, #3a1f1f);
    transition: all 0.2s ease;
}

#confirmHoldBtn .liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #2ecc71, #27ae60);
    transform: scaleY(0);
    transform-origin: bottom;
    will-change: transform;
}

#confirmHoldBtn span {
    position: relative;
    z-index: 2;
}

#confirmHoldBtn.holding {
    transform: scale(0.96);
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.6);
}

#confirmHoldBtn:hover {
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
}

/* RESPONSIVE */
html {
    font-size: clamp(14px, 0.9vw, 16px);
}

.container,
.home-container {
    padding: clamp(16px, 2vw, 30px);
}

@media (max-width: 1300px) {
    .command-panel {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1100px) {
    .table-header {
        display: none;
    }

    .table-row {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 14px;
    }

    .table-row div {
        display: flex;
        justify-content: space-between;
        font-size: 13px;
    }

    .table-row div::before {
        content: attr(data-label);
        color: #7fae8c;
        font-size: 12px;
    }
}

@media (max-width: 900px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .filter-group,
    .filter-select,
    .filter-input {
        width: 100%;
        min-width: unset;
    }

    .filter-reset {
        width: 100%;
        margin-left: 0;
    }

    .command-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1000px) {
    .nav-content {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .nav-logo {
        position: static;
        transform: none;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .nav-user {
        justify-content: center;
    }
}

@media (max-width: 500px) {
    .page-transition-panel {
        min-width: 0;
        width: calc(100vw - 32px);
        padding: 16px 18px;
    }

    .modal-content {
        width: 90%;
        padding: 16px;
    }

    .confirm-box {
        width: 90%;
    }
}
