[x-cloak] { display: none !important; }

/* Header search input — LeaderOS input bg override */
header input[type="text"] {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.dark header input[type="text"] {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: rgb(226 232 240) !important;
}
.dark header input[type="text"]::placeholder {
    color: rgb(107 114 128) !important;
}

/* Player search dropdown */
.player-search-dropdown {
    position: absolute;
    z-index: 50;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid rgb(229 231 235);
    max-height: 320px;
    overflow-y: auto;
}
.dark .player-search-dropdown {
    background: rgb(18 18 21);
    border-color: rgb(255 255 255 / 0.08);
}

.login-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    padding: 1rem;
}

.login-card {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.15);
}

.dark .login-card {
    background: #000000;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #f1f5f9;
    letter-spacing: -0.05em;
}

.player-body-render {
    display: inline-block;
    image-rendering: pixelated;
}

.player-body-render img {
    display: block;
    width: 128px;
    height: auto;
}

.badge-active { background-color: #10b9811a; color: rgb(16 185 129); }
.badge-inactive { background-color: #ef44441a; color: rgb(239 68 68); }
.badge-silent { background-color: #f59e0b1a; color: rgb(245 158 11); }
.badge-permanent { background-color: #ef44441a; color: rgb(239 68 68); }
.badge-temp { background-color: #3b82f61a; color: rgb(59 130 246); }

.login-card .form-control {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    width: 100%;
}

.login-card .form-control::placeholder {
    color: #475569;
}

.login-card .form-control:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.login-card .btn-primary {
    width: 100%;
    justify-content: center;
    background: #3b82f6;
    border: none;
    border-radius: 0.75rem;
    padding: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
}

.login-card .btn-primary:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
}

.login-card label {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Minecraft avatar images — crisp pixel rendering */
img.mc-avatar {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    border-radius: 4px;
    flex-shrink: 0;
    width: 32px !important;
    height: 32px !important;
    max-width: none !important;
}
.event-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.event-badge-blue { background: #3b82f61a; color: rgb(59 130 246); }
.event-badge-red { background: #ef44441a; color: rgb(239 68 68); }
.event-badge-green { background: #10b9811a; color: rgb(16 185 129); }
.event-badge-yellow { background: #f59e0b1a; color: rgb(245 158 11); }
.event-badge-purple { background: #8b5cf61a; color: rgb(139 92 246); }
.event-badge-cyan { background: #06b6d41a; color: rgb(6 182 212); }
.event-badge-gray { background: #6b72801a; color: rgb(107 114 128); }
.event-badge-indigo { background: #6366f11a; color: rgb(99 102 241); }

.stat-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem;
    border-radius: 0.5rem;
    background: rgb(243 244 246 / 0.5);
}

.dark .permission-item {
    background: rgb(255 255 255 / 0.03);
}
