/* style.css - Zamonaviy Dizayn */

/* 1. Zamonaviy Shrift (Google Fonts: Poppins) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7f6; /* Juda och kulrang fon */
    color: #333;
}

/* 2. Yumshoq Soyalar va Burchaklar (Card Design) */
.card {
    border: none; /* Ramkani olib tashlaymiz */
    border-radius: 15px; /* Burchaklarni aylana qilamiz */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Yumshoq soya */
    transition: all 0.3s ease;
}

/* Hover effekti (Sichqoncha borganda ko'tarilishi) */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    border-radius: 15px 15px 0 0 !important;
    padding: 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* 3. Knopkalar (Buttons) */
.btn-primary {
    background: linear-gradient(45deg, #4e73df, #224abe); /* Gradient rang */
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(78, 115, 223, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #224abe, #4e73df);
    box-shadow: 0 6px 15px rgba(78, 115, 223, 0.4);
}

.btn-danger {
    border-radius: 10px;
    padding: 8px 15px;
}

/* 4. Formalar (Inputs) */
.form-control {
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #ddd;
    background-color: #fcfcfc;
}

.form-control:focus {
    box-shadow: none;
    border-color: #4e73df;
    background-color: #fff;
}

/* 5. Jadvallar (Tables) */
.table-modern {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.table-modern thead {
    background-color: #f8f9fa;
    color: #666;
    font-weight: 600;
}

.table-modern th, .table-modern td {
    padding: 15px;
    vertical-align: middle;
    border-top: 1px solid #eee;
}

/* Status belgilari */
.badge-status {
    padding: 8px 12px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.85rem;
}
.bg-soft-success { background-color: #d1e7dd; color: #0f5132; }
.bg-soft-danger { background-color: #f8d7da; color: #842029; }

/* Navbar */
.navbar-modern {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1rem 2rem;
}
.navbar-brand { font-weight: 700; color: #4e73df !important; }
/* --- PRELOADER (YUKLASH EKRANI) --- */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999; /* Hamma narsadan ustunda turadi */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease; /* Sekin yo'qolish effekti */
}

.loader-content {
    text-align: center;
}

/* --- style.css OXIIRGI QISMI --- */

/* --- style.css OXIRGI QISMI (YANGILANGAN) --- */

/* --- PRELOADER (YUKLASH EKRANI) --- */
#loader-wrapper {
    /* Ekranni to'liq yopib turish uchun */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff; /* Oq fon */
    z-index: 9999; /* Hamma narsadan ustunda */
    
    /* Markazlashtirish (Sizning kodingizdan) */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Yo'qolish effekti */
    transition: opacity 0.5s ease;
}

/* 3D Perspektiva konteyneri */
.logo-container {
    position: relative;
    width: 150px;  /* Logo o'lchami */
    height: 150px;
    perspective: 500px; /* 3D chuqurlik effekti */
}

/* Aylanadigan qism */
.logo-flip {
    position: absolute;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    animation: flip 2.5s linear infinite; /* 2.5 sekundda bir aylanadi */
    transform-style: preserve-3d;
}

/* Rasmning o'zi */
.logo-flip img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Rasmni cho'zilib ketishdan saqlaydi */
}

/* Siz yuborgan animatsiya kodi */
@keyframes flip {
    0% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(180deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}