:root {
    --color-bg: #1A1A2E;
    --color-red: #FF6B6B;
    --color-purple: #6C5CE7;
    --color-blue: #0ea5e9;
    --color-green: #00D4AA;
}

body {
    background-color: var(--color-bg);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.jwt-header-text {
    color: var(--color-red);
}

.jwt-payload-text {
    color: var(--color-purple);
}

.jwt-signature-text {
    color: var(--color-blue);
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: transparent;
    color: white;
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

.json-key {
    color: #f87171;
}

/* red-400 */
.json-string {
    color: #a5b4fc;
}

/* indigo-300 */
.json-number {
    color: #34d399;
}

/* emerald-400 */
.json-boolean {
    color: #fbbf24;
}

/* amber-400 */
.json-null {
    color: #9ca3af;
}

/* gray-400 */

/* Tooltip for standard claims */
.tooltip {
    visibility: hidden;
    width: max-content;
    max-width: 250px;
    background-color: #2D2D44;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 6px 10px;
    position: absolute;
    z-index: 50;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 0.70rem;
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    letter-spacing: normal;
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #2D2D44 transparent transparent transparent;
}

.has-tooltip:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.timeline-dot {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--color-bg);
}

.timeline-dot.iat {
    background-color: #34d399;
    z-index: 2;
}

.timeline-dot.nbf {
    background-color: #fbbf24;
    z-index: 2;
}

.timeline-dot.exp {
    background-color: #f87171;
    z-index: 2;
}

.timeline-dot.now {
    background-color: #60a5fa;
    width: 14px;
    height: 14px;
    z-index: 3;
}

.timeline-segment {
    position: absolute;
    top: 0;
    bottom: 0;
}

.timeline-segment.past {
    background-color: rgba(52, 211, 153, 0.4);
    border-radius: 4px 0 0 4px;
}

.timeline-segment.future {
    background-color: rgba(248, 113, 113, 0.4);
    border-radius: 0 4px 4px 0;
}

.timeline-segment.valid {
    background-color: rgba(52, 211, 153, 0.8);
}

.timeline-segment.invalid {
    background-color: rgba(248, 113, 113, 0.8);
}

.time-label {
    position: absolute;
    top: -20px;
    transform: translateX(-50%);
    font-size: 9px;
    color: #9ca3af;
    white-space: nowrap;
}

.time-label.now {
    top: 14px;
    color: #60a5fa;
    font-weight: bold;
}