@charset "UTF-8";

/* ==========================================================================
   Seichi 50 Ranking Difference Checker - Stylesheet
   Faithful to seichi.conarin.com design
   ========================================================================== */

:root {
    --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    min-height: 100vh;
}

.sticky-lg-top {
    top: 30px !important;
}

/* Player links */
#ranking a.player {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

#ranking a.player:hover {
    color: #0d6efd;
    text-decoration: underline;
}

/* Avatar Image (65x65 pixelated) */
.avatar {
    width: 65px;
    height: 65px;
    border-radius: 4px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    background-color: rgba(128, 128, 128, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Rank column */
#ranking th {
    font-size: 1.05rem;
    font-weight: 700;
    min-width: 52px;
    text-align: center;
}

/* Differences Lines */
.diff-up {
    color: #f87171;
    font-size: 0.9rem;
}

[data-bs-theme="light"] .diff-up {
    color: #dc2626;
}

.diff-down {
    color: #4ade80;
    font-size: 0.9rem;
}

[data-bs-theme="light"] .diff-down {
    color: #16a34a;
}

.diff-leader {
    color: #facc15;
    font-size: 0.9rem;
    font-weight: 600;
}

[data-bs-theme="light"] .diff-leader {
    color: #ca8a04;
}

/* Last login line */
.last-login-at {
    color: #888;
    font-size: 0.8rem;
}

.font-mono {
    font-family: var(--font-mono);
}

/* Star icon */
.star-level {
    color: #eab308;
}

/* Quick jump pagination */
.quick-jump {
    font-size: 0.8rem;
    padding: 0.35rem 0.6rem;
}

.quick-jump:hover {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

/* Spin animation for refresh icon */
.spin-anim {
    animation: spinAround 0.8s linear infinite;
    display: inline-block;
}

@keyframes spinAround {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Search highlight animation */
@keyframes highlightRow {
    0% { background-color: rgba(13, 110, 253, 0.35); }
    100% { background-color: transparent; }
}

tr.highlight-target {
    animation: highlightRow 2s ease-out;
}

/* ==========================================================================
   Settings Button & Dropdown (Dark Theme / Auto-refresh)
   ========================================================================== */
.settings-btn {
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
    border-color: rgba(255, 255, 255, 0.25);
    background: transparent;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

[data-bs-theme="light"] .settings-btn {
    border-color: rgba(0, 0, 0, 0.2);
}

.settings-btn:hover, .settings-btn:focus, .settings-btn[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: inherit;
}

[data-bs-theme="light"] .settings-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.settings-dropdown {
    min-width: 220px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: #212529;
    z-index: 1050 !important;
}

.settings-dropdown.show {
    display: block !important;
}

[data-bs-theme="light"] .settings-dropdown {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
}

.auto-refresh-select {
    border-radius: 6px;
    font-size: 0.875rem;
    padding: 0.25rem 1.8rem 0.25rem 0.6rem;
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: inherit;
}

[data-bs-theme="light"] .auto-refresh-select {
    background-color: #f8f9fa;
    border-color: #ced4da;
}

.auto-refresh-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* ==========================================================================
   Authentication Overlay & Lock Screen
   ========================================================================== */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

[data-bs-theme="light"] .auth-overlay {
    background: rgba(248, 250, 252, 0.95);
}

.auth-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 2.2rem 1.8rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

[data-bs-theme="light"] .auth-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

.auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.15);
    border: 1px solid rgba(13, 110, 253, 0.3);
    margin: 0 auto;
    animation: iconFloat 3s ease-in-out infinite alternate;
}

@keyframes iconFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}

/* Shake animation on invalid password */
.shake-anim {
    animation: shakeCard 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shakeCard {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(4px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
    40%, 60% { transform: translate3d(6px, 0, 0); }
}

