/* Pill Selector Styling */
.pill-selector {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pill-option {
    display: none; /* Hide actual radio buttons */
}

.pill-label {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}

.pill-label:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.pill-option:checked + .pill-label {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.1);
}

.pill-flag {
    font-size: 1.1em;
}

/* Progress Bar Components */
.progress-container {
    width: 100%;
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    height: 8px;
    overflow: hidden;
    margin-top: 16px;
}

.progress-bar {
    height: 100%;
    background: var(--accent);
    width: 0%;
    border-radius: var(--radius-sm);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--accent-glow);
}

.progress-info {
    text-align: center;
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Minimalist BETA Badge */
.badge-beta {
    background: var(--accent);
    color: #000; /* Black text for better contrast on solid cyan */
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.badge-beta:hover {
    background: #00b8e6; /* Slightly darker cyan on hover */
}

/* Multi-step Modal Styling */
.modal-step {
    display: none;
}

.modal-step.active {
    display: block;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Game Selection Styling */
.game-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, 130px);
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
}

.game-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
    width: 130px;
}

.game-card:hover {
    background: var(--bg-glass-hover);
    transform: translateY(-2px);
    border-color: var(--border-hover);
}

.game-card.selected {
    border-color: var(--accent);
    background: rgba(0, 212, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

.game-banner {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.game-info {
    padding: 8px;
    text-align: center;
}

.game-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.game-check {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--accent);
    color: #0b1121;
    border-radius: 50%;
    padding: 3px;
    display: none;
}

.game-card.selected .game-check {
    display: flex;
}

/* Notification Dots */
.nav-link-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.notification-dot {
    position: absolute;
    top: -4px;
    right: -8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: none;
    z-index: 10;
}

.dot-orange {
    background: #ff8c00;
    box-shadow: 0 0 8px rgba(255, 140, 0, 0.8);
    animation: glow-orange 1.5s infinite;
}

.dot-green {
    background: #2ecc71;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.8);
    animation: glow-green 1.5s infinite;
}

@keyframes glow-orange {
    0% { box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(255, 140, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 140, 0, 0); }
}

@keyframes glow-green {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* Maintenance Mode Styling */
.server-card.maintenance-mode {
    position: relative;
}

.maintenance-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 5;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.maintenance-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 165, 0, 0.2);
    border: 1px solid rgba(255, 165, 0, 0.4);
    padding: 12px 20px;
    border-radius: 8px;
    color: #ffa500;
    font-weight: 600;
    font-size: 0.9rem;
}

.maintenance-badge svg {
    stroke: #ffa500;
}

.status-badge.maintenance {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}

/* Custom Toggle Switch */
.toggle-switch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: var(--transition);
}

.toggle-switch-container:hover {
    border-color: var(--border-hover);
    background: var(--bg-glass-hover);
}

.toggle-switch-label {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}

.toggle-switch {
    display: flex;
    align-items: center;
}

.toggle-input {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 34px;
    transition: .3s;
    cursor: pointer;
    border: 1px solid var(--border);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: #fff;
    border-radius: 50%;
    transition: .3s;
}

.toggle-input:checked + .toggle-slider {
    background-color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.toggle-input:checked + .toggle-slider:before {
    transform: translateX(20px);
}
/* Custom Scrollbar for Modals */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* For Firefox */
.modal-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}
