/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BASE */
html, body {
    height: 100%;
    cursor: url('/public/images/glowing_dot_cursor%20_32_32.png') 8 8, auto !important;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #0c1410;
    color: #d6e5d8;
    line-height: 1.6;

    display: flex;
    flex-direction: column;
}

/* CONTAINER */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;

    padding-top: 90px;  
    padding-bottom: 80px; 
}

/* 🪖 FLEX TABLE SYSTEM */
.home-container {
    max-width: 1200px;
    margin: 90px auto 40px;
    padding: 30px;

    min-height: calc(100vh - 160px);

    background: linear-gradient(145deg, #1a1f1c, #111614);
    border: 1px solid rgba(127, 255, 159, 0.1);
    border-radius: 12px;

    box-shadow:
        0 20px 50px rgba(0,0,0,0.8),
        inset 0 1px 0 rgba(255,255,255,0.03);
}

/* HEADER */
.table-header {
    display: grid;
    grid-template-columns: 60px 1.5fr 1fr 100px 1.2fr 120px 60px 120px;

    padding: 10px 18px;

    font-size: 12px;
    letter-spacing: 1.2px;
    color: #7fff9f;
    opacity: 0.9;
}

/* ROW = CARD */
.table-row {
    display: grid;
    grid-template-columns: 60px 1.5fr 1fr 100px 1.2fr 120px 60px 120px;

    align-items: center;

    background: linear-gradient(145deg, #181f1c, #121715);

    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 10px;

    padding: 16px 18px;

    transition: 0.2s;
}

.filter-reset {
    padding: 9px 14px;

    background: #1a1f1c;
    border: 1px solid #2a3a32;

    color: #cde6d0;
    border-radius: 6px;

    cursor: pointer;
    transition: 0.2s;
}

.filter-reset:hover {
    background: #222a26;
    border-color: #7fff9f;
    color: #7fff9f;
}

.table-container {
    display: flex;
    flex-direction: column;
    gap: 14px;

    background: rgba(15, 20, 18, 0.9);
    border: 1px solid rgba(127,255,159,0.08);
    border-radius: 10px;

    padding: 14px;
}

/* HOVER */
.table-row:hover {
    background: linear-gradient(145deg, #1d2a23, #141d18);
    border-color: rgba(127,255,159,0.15);

    transform: translateY(-2px);
}

/* TEXT */
.table-row div {
    color: #d6ffe2;
    font-size: 14px;
}

/* INFO */
.info-cell {
    position: relative;
    cursor: pointer;
    color: #7fff9f;
}

/* TOOLTIP */
.info-tooltip {
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);

    background: #0b1912;
    border: 1px solid #2e5d3b;
    border-radius: 6px;

    padding: 10px;
    width: 180px;

    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: 999;
}

/* SHOW TOOLTIP */
.info-cell:hover .info-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* ORDER BUTTON */
.order-btn {
    padding: 8px 14px;
    border-radius: 6px;

    background: #2e5d3b;
    border: none;

    color: white;
    font-weight: 600;
    cursor: pointer;

    transition: 0.2s;
}

.order-btn:hover {
    background: #3f7d50;
    box-shadow: 0 0 8px rgba(127,255,159,0.3);
}


.filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;

    padding: 16px;

    background: rgba(25, 30, 28, 0.95);
    border: 1px solid rgba(127,255,159,0.08);
    border-radius: 10px;
}

.filter-search,
.filter-select {
    background: #121715;
    border: 1px solid #2a3a32;
    color: #d6ffe2;

    padding: 10px 12px;
    border-radius: 6px;
}

.filter-search::placeholder {
    color: #6f8f7a;
}

.filter-search::placeholder {
    color: #7fae8c;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    z-index: 1000;

    border-bottom: 2px solid #2e5d3b;
    background: rgba(19, 36, 26, 0.95);
    backdrop-filter: blur(8px);

    padding: 16px 32px;
}

/* LAYOUT */
.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* LEFT LINKS */
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px; /* spacing instead of separators */
}

/* LINKS */
.nav-links a {
    font-size: 17px; /* bigger = readable */
    font-weight: 500;
    color: #cde6d0;
    text-decoration: none;
    letter-spacing: 0.6px;

    position: relative;
    padding-bottom: 4px;

    transition: all 0.2s ease;
}

/* CLEAN UNDERLINE EFFECT */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #7fff9f;
    transition: 0.2s;
}

/* HOVER */
.nav-links a:hover {
    color: #7fff9f;
}

.nav-links a:hover::after {
    width: 100%;
}

/* CENTER TITLE */
.nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    font-size: 22px; /* bigger + stronger */
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-logo a {
    color: #7fff9f;
    text-decoration: none;
}

/* RIGHT SIDE USER */
.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* AVATAR */
.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #2e5d3b;
}

/* USERNAME */
.nav-username {
    font-size: 15px;
    color: #cde6d0;
}

/* LOGOUT */
.nav-user a {
    font-size: 15px;
    color: #cde6d0;
    text-decoration: none;
}

.nav-user a:hover {
    color: #ff7b7b;
}

/* CARDS */
.card {
    background: #16271e;
    border: 1px solid #2e5d3b;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    border-color: #7fff9f;
}

/* BUTTON */
.btn {
    display: inline-block;
    background: #2e5d3b;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.2s;
}

.btn:hover {
    background: #3f7d50;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* ========================= */
/* FOOTER (FIXED + GLOW) */
/* ========================= */

.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: 1000;

    overflow: hidden;

    animation: footerGlowPulse 4s ease-in-out infinite;
}

/* GLOW LAYER */
.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;
}

/* TOP GLOW LINE */
.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;
}

/* GLOW ANIMATION */
@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 */
.footer-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: auto;
}

/* FOOTER LINKS */
.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);
}

/* DIVIDER */
.footer-divider {
    margin: 10px auto;
    width: 60%;
    height: 1px;
    background: linear-gradient(to right, transparent, #2e5d3b, transparent);
}

/* HEADINGS */
h1, h2, h3 {
    color: #7fff9f;
}

/* TEXT */
.footer-content h3 {
    font-size: 15px;
    margin-bottom: 5px;
}

.footer-content p {
    margin: 2px 0;
    font-size: 12px;
}

/* LINKS */
a {
    color: #7fff9f;
}

/* CENTERING */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;

    height: calc(100vh - 140px); /* account for navbar + footer */
}

/* BOX */
.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);
}

/* TITLE */
.login-box h1 {
    color: #7fff9f;
    font-size: 26px;
    margin-bottom: 10px;
}

/* SUBTEXT */
.login-sub {
    color: #cde6d0;
    font-size: 16px;
    margin-bottom: 20px;
}

/* DIVIDER */
.login-divider {
    height: 1px;
    width: 60%;
    margin: 20px auto;

    background: linear-gradient(to right, transparent, #2e5d3b, transparent);
}

/* BUTTON */
.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);
}

/* STATUS TEXT (red tone) */
.login-status {
    color: #ff7b7b;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* SECONDARY LINK */
.login-alt {
    color: #9fbba4;
    font-size: 13px;
    text-decoration: none;
}

.login-alt:hover {
    color: #cde6d0;
}

/* ========================= */
/* MOBILE OPTIMIZATION */
/* ========================= */

@media (max-width: 768px) {

    .nav-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .footer {
        font-size: 11px;
        padding: 10px;
    }

    .footer-divider {
        width: 80%;
    }
}

.notfound-container {
    text-align: center;
    margin-top: 120px;
}

.notfound-container h1 {
    font-size: 80px;
    color: #7fff9f;
}

.notfound-title {
    font-size: 22px;
    margin: 10px 0;
}

.notfound-sub {
    color: #9fbba4;
    margin-bottom: 20px;
}

/* ========================= */
/* CUSTOM SCROLLBAR */
/* ========================= */

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0c1410; /* page background */
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        #2e5d3b,
        #244a30
    );
    border-radius: 10px;

    border: 2px solid #0c1410; /* creates spacing effect */
}

::-webkit-scrollbar-thumb:hover {
    background: #3f7d50;
    box-shadow: 0 0 6px rgba(127,255,159,0.4);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #2e5d3b #0c1410;
}
