/* Avvalgi barcha CSS kodlari + quyidagi qo'shimchalar */

/* ============ YUKLASH ANIMATSIYASI ============ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============ XATOLIK XABARI ============ */
.error-message {
    margin-top: 15px;
    padding: 12px 20px;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid var(--red);
    border-radius: 10px;
    color: var(--red);
    text-align: center;
}

/* ============ BARABAN NATIJA ============ */
.drum-result {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent);
    display: none;
    z-index: 20;
}

/* ============ TARIX FILTRLARI ============ */
.history-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
}

/* ============ TELEGRAM TUGMASI ============ */
.btn-telegram {
    padding: 15px 30px;
    background: #0088cc;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-telegram:hover {
    background: #006699;
    transform: translateY(-2px);
}

/* Responsive qo'shimchalar */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 10px;
    }
    
    .menu-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .menu-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
        padding: 10px;
        font-size: 12px;
    }
    
    .main-content {
        margin-left: 0;
    }
}