body { letter-spacing: -0.02em; background-color: #0a0a0c; }

/* I added a custom scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #0a0a0c; }
::-webkit-scrollbar-thumb { background: #2d2d35; border-radius: 10px; }

/* I choose the neon status light */
@keyframes neon-pulse {
    0% { opacity: 1; filter: brightness(1) drop-shadow(0 0 2px #00ff9d); }
    50% { opacity: 0.3; filter: brightness(0.5) drop-shadow(0 0 0px #00ff9d); }
    100% { opacity: 1; filter: brightness(1) drop-shadow(0 0 2px #00ff9d); }
}
#status-light { animation: neon-pulse 1.2s infinite ease-in-out; }

/* I set the table row hover */
tr { transition: all 0.3s ease; height: 110px; }
tr:hover { background-color: #1c1c22 !important; }
tr:hover td { color: #ffffff; text-shadow: 0 0 10px rgba(56, 189, 248, 0.5); }

/* I customize and set the badges */
.status-badge {
    width: 65px; height: 65px; object-fit: contain;
    background: #16161a; border: 2px solid rgba(0, 255, 157, 0.3);
    border-radius: 50%; padding: 2px; transition: all 0.4s;
    display: block; margin: 0 auto;
    flex-shrink: 0;
}
.legendary-zoom { transform: scale(0.99); }
.achievement-wrapper { position: relative; display: inline-flex; }
.-space-x-3 > .achievement-wrapper { margin-right: -20px; }
.achievement-wrapper:hover { z-index: 50; }
.achievement-wrapper:hover .status-badge {
    transform: scale(1.4) translateY(-10px);
    border-color: #00ff9d; filter: drop-shadow(0 0 20px rgba(0, 255, 157, 0.8));
}

.badge-tooltip {
    visibility: hidden; position: absolute; bottom: 150%; left: 50%;
    transform: translateX(-50%); background: #0a0a0c; color: #38bdf8;
    padding: 6px 12px; border: 1px solid #38bdf8; border-radius: 4px;
    font-size: 10px; font-weight: bold; white-space: nowrap;
    opacity: 0; transition: opacity 0.2s; z-index: 1000;
}
.achievement-wrapper:hover .badge-tooltip { visibility: visible; opacity: 1; }

.cyber-btn {
    background: transparent; border: 1px solid #00ff9d; color: #00ff9d;
    padding: 8px 16px; font-size: 10px; text-transform: uppercase;
    letter-spacing: 2px; cursor: pointer; transition: all 0.3s;
}
.cyber-btn:hover { background: #00ff9d; color: #0a0a0c; box-shadow: 0 0 15px #00ff9d; }

.cyber-btn-alt {
    background: transparent; border: 1px solid #2d2d35; color: #64748b;
    padding: 8px 16px; font-size: 10px; text-transform: uppercase; cursor: pointer;
}
.cyber-btn-alt.active { border-color: #ef4444; color: #ef4444; box-shadow: 0 0 10px rgba(239, 68, 68, 0.3); }

.date-input {
    background: transparent; border: 1px solid #38bdf8; color: #e2e8f0;
    font-size: 10px; padding: 4px 8px; outline: none; cursor: pointer;
}

.formula-input {
    background: transparent; border: 1px solid #2d2d35; color: #00ff9d;
    width: 40px; text-align: center; font-size: 10px; outline: none;
}
.formula-input::-webkit-inner-spin-button { opacity: 0.3; filter: invert(1); }

.veto-btn { opacity: 0.2; background: transparent; border: none; cursor: pointer; transition: all 0.3s; }
tr:hover .veto-btn { opacity: 0.6; }
.veto-active { opacity: 1 !important; color: #bf97ff; filter: drop-shadow(0 0 5px #bf97ff); }
.grayscale { filter: grayscale(1); opacity: 0.3; }
.line-through { text-decoration: line-through; opacity: 0.5; }

.revert-subtle { color: #64748b; font-size: 9px; opacity: 0.6; font-style: italic; display: inline-block; }
.score-meta { font-size: 9px; text-transform: uppercase; margin-top: 2px; opacity: 0.8; }
.bot-tag { background-color: #ef4444; color: white; box-shadow: 0 0 10px rgba(239, 68, 68, 0.5); font-weight: 800; }
.edit-link { opacity: 0.4; transition: opacity 0.3s; font-size: 14px; margin-left: 8px; }

/* I made the system that also response to phone screens, it doesnt behave terribly when opened in phones*/
@media (max-width: 768px) {
    /* 1. this will stop the whole screen from shaking left to right */
    body {
        overflow-x: hidden;
        padding: 10px !important;
    }

    .date-input {
    width: 118px !important;      
    padding-right: 0px !important; /* I removed right padding to give the '6' space */
    letter-spacing: 0px !important; 
}

    /* 2. here I fixed the table to Prevent it from squishing */
    table {
        min-width: 600px !important; /* ths code will force the columns to stay readable */
    }

    /* 3. below code will make the Table Swipeable */
    .overflow-x-auto {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; 
        border: 1px solid #2d2d35;
    }

    /* 4. this code will shrink the header text slightly for small phones */
    h1 {
        font-size: 1rem !important;
    }
}

/* following codes are for mobile swipe animation */
#swipe-hint {
    pointer-events: none; /* I used it so it doesnt block clicks */
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.05);
}

/* THIS CODES MAKES the text glow slightly */
#swipe-hint span {
    text-shadow: 0 0 8px rgba(0, 255, 157, 0.5);
}

@keyframes pulse-subtle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.animate-pulse {
    animation: pulse-subtle 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.cursor-help { cursor: help; }

.pt-tag { color: #00ff9d; font-size: 8px; border: 1px solid #00ff9d; padding: 1px 3px; border-radius: 2px; }
.br-tag { color: #ffcc00; font-size: 8px; border: 1px solid #ffcc00; padding: 1px 3px; border-radius: 2px; }

/* Below is the warning given for strict mode */
@keyframes strict-pulse {
    0% { opacity: 1; filter: brightness(1) drop-shadow(0 0 2px #ef4444); }
    50% { opacity: 0.4; filter: brightness(0.7) drop-shadow(0 0 0px #ef4444); }
    100% { opacity: 1; filter: brightness(1) drop-shadow(0 0 2px #ef4444); }
}

#strict-light { 
    animation: strict-pulse 2s infinite ease-in-out; 
}
