/* --- ASOSIY STIL --- */
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background-color: #0f172a; 
    color: #e2e8f0; 
    margin: 0; 
    padding: 15px; 
    display: flex; 
    justify-content: center; 
    -webkit-tap-highlight-color: transparent;
}

.container { width: 100%; max-width: 450px; }

/* --- TASHKILOT BO'LIMI --- */
.org-section {
    border: 1px solid #334155;
    border-radius: 12px;
    overflow: hidden;
    background: #1e293b;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

/* --- ACCORDION STILLARI --- */
.order-accordion {
    border-bottom: 1px solid #334155;
}

.order-trigger {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #1e293b;
    transition: background 0.2s;
}

.order-trigger:hover { background: #243146; }

.order-title { margin: 0; font-size: 1rem; color: #60a5fa; }
.order-meta { margin: 2px 0 0 0; font-size: 0.75rem; color: #94a3b8; }
.order-badge { background: #334155; padding: 4px 10px; border-radius: 8px; font-weight: bold; font-size: 0.85rem; }

.order-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease;
    background: #1e293b;
}

/* OCHILGAN HOLAT */
.order-accordion.active .order-content {
    max-height: 2000px;
    opacity: 1;
}

/* --- STATUS GRID --- */
.status-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px; 
    padding: 15px;
}

.status-item { 
    padding: 12px 8px; 
    border-radius: 12px; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    min-height: 70px;
    transition: all 0.3s ease;
}

.step-name { font-size: 0.7rem; font-weight: bold; margin-bottom: 5px; opacity: 0.9; text-transform: uppercase; }

/* --- DISPLAY CYCLE ANIMATSIYASI --- */
.display-wrapper { position: relative; height: 35px; overflow: hidden; }
.cycle-item { 
    position: absolute; width: 100%; top: 100%; opacity: 0; 
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
}
.cycle-item.active { top: 0; opacity: 1; }

.main-val { font-size: 1.05rem; display: block; line-height: 1.1; }
.sub-text { font-size: 0.6rem; font-weight: normal; opacity: 0.8; display: block; margin-top: 2px; }

/* --- RANGLAR --- */
.done { background-color: #1b5e20 !important; color: #ffffff; border: 1px solid #2e7d32; }
.process { background-color: #FFC148 !important; color: #000000; border: 1px solid #ffab40; }
.not-started { background-color: #D82117 !important; color: #ffffff; border: 1px solid #d32f2f; }

/* --- PROGRESS BAR --- */
.overall-progress-container { padding: 0 15px 20px 15px; }
.overall-label { font-size: 0.85rem; font-weight: bold; color: #f8fafc; margin-bottom: 8px; text-align: center; }

.progress-bar-bg { width: 100%; height: 10px; background: #0f172a; border-radius: 10px; overflow: hidden; border: 1px solid #334155; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, #3b82f6, #60a5fa); transition: width 1s ease-in-out; }
.progress-bar-fill.full { background: linear-gradient(90deg, #22c55e, #4ade80); }

/* --- ANIMATSIYALAR --- */
.animate-in { animation: slideUp 0.4s ease-out; }
@keyframes slideUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }