body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 3px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 10px; /* Padding qo'shildi */
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h2 {
    text-align: center;
    color: #ff0000;
    margin-bottom: 5px;
    padding: 3px;
}

.fixed-header {
    position: sticky;
    top: 0;
    background: rgb(185, 215, 242);
    z-index: 1000;
    padding: 0px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 2px solid #249081;
    border-radius: 5px;
    text-align: left;
    margin-bottom: 0px;
    outline: none;
    transition: border-color 0.3s ease;

    /* Yangi qo'shilgan kodlar */
    height: 110px; /* Balandlikni 150 piksel qilish */
    width: 100%; /* Kenglikni 80% qilish */
    max-width: 1200px; /* Maksimal kenglik */
    margin-left: auto; /* Markazga joylashtirish */
    margin-right: auto; /* Markazga joylashtirish */
}

h5 {
    font-size: 13px;
    text-align: center;
    color: #070707;
    margin-bottom: 5px;
    padding: 3px;
    position: relative;
    left: 20px; /* O'ngga surish */
    top: -23px; /* Yuqoriga surish */
}

.search-container {
    position: relative; /* Tozalash tugmasi uchun joy yaratish */
    display: flex;
    align-items: center; /* Elementlarni vertikal markazga joylashtirish */
    gap: 10px; /* Qidiruv oynasi va Print tugmasi orasidagi masofa */
    margin-bottom: 2px;
    width: 100%; /* Qidiruv maydonini kengligi */
    max-width: 1000px; /* Maksimal kenglik */
}

#search {
    width: 100%;
    padding: 5px 40px 5px 12px; /* Tozalash tugmasi uchun joy qoldirish (o'ng tomonda 40px) */
    font-size: 16px;
    border: 2px solid #249081;
    height: 40px;
    border-radius: 5px;
    text-align: left;
    margin-bottom: 5px;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box; /* Padding va border kenglikka kiritiladi */
}

#search:focus {
    border-color: #00251a;
}

/* Tozalash tugmasi */
.clear-search {
    position: absolute;
    right: 18px; /* Qidiruv maydonidan o'ng tomonga masofa */
    top: 50%;
    transform: translateY(-50%); /* Vertikal markazga joylashtirish */
    background: none;
    border: none;
    font-size: 12px;
    /* background: linear-gradient(90deg, #2900dd, #000000, #ff0000);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientAnimation 5s infinite; */
    font-weight: bold;
    cursor: pointer;
    color: #999;
    display: none; /* Boshlang'ich holatda yashirin */
    padding: 0;
    margin: 0;
    line-height: 1;
}

.clear-search:hover {
    color: #b90000;
}




/*umumiy narx effecti*/

#total-price {
    font-family: cursive;
    font-size: 20px;
    background: linear-gradient(90deg, #2900dd, #000000, #ff0000);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientAnimation 5s infinite;
    /* font-weight: bold; */
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/*umumiy narx effecti*/

#test-list {
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 1px;
    margin-top: 3px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: white;
    border-radius: 8px;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

th {
    position: sticky;
    top: 0;
    background: #249081;
    color: white;
    text-transform: uppercase;
    text-align: left;
    font-size: 14px;
}

td {
    background-color: #f9f9f9;
    font-size: 14px;
}

tr:hover td {
    background-color: #f1f1f1;
}

.name {
    text-align: left;
    font-weight: bold;
    color: #333;
    padding-left: 1px; /* Test nomini chaproqda joylashtirish */
}

.price {
    text-align: right;
    font-weight: bold;
    color: #249081;
}

.test-checkbox {
    cursor: pointer;
    width: 16px;
    height: 16px;
    margin-right: 1px; /* Galochka va test nomi orasidagi masofa */
}

#search-results {
    display: none;
    text-align: center;
    /* background-color: #f6f6f6; */
    color: rgb(255, 3, 3);
    font-size: 9px;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 5px;
    animation: bounce 0.5s infinite;
    width: fit-content;
    height: fit-content;
    margin-left: auto;
    margin-right: auto;
    position: fixed;
    top: 5px;
    left: 30%;
    transform: translateX(-50%);
    z-index: 1000;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Mobil ekranlar uchun moslashuv */
@media screen and (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px;
    }

    #search {
        font-size: 14px;
        padding: 10px 35px 10px 10px;
    }

    #search-results {
        font-size: 12px;
        padding: 8px 12px;
    }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 10px;
    }
}

.filter-buttons {
    display: flex;
    justify-content: flex-start; /* Tugmalarni chap tomonga joylashtirish */
    gap: 10px;
    margin-bottom: 10px;
    margin-left: 10px; /* Chap tomondan bo'shliq */
}

.filter-btn {
    background-color: #d1d0dc;
    color: rgb(0, 0, 0);
    padding: 7px 7px; /* Paddingni oshirish */
    border-radius: 8px; /* Burchaklarni yumaloqroq qilish */
    cursor: pointer;
    font-size: 10px; /* Shrift hajmini oshirish */
    font-weight: bold;
    width: auto; /* O'lchamni moslashuvchan qilish */
    min-width: 80px; /* Minimal kenglikni oshirish */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease; /* Barcha o'zgarishlar uchun transition */
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px); /* Tugmalarga blur effekti */
    background: rgba(90, 245, 222, 0.4); /* Orqa fonni yanada shaffof qilish */
    border: 1px solid rgba(255, 255, 255, 0.5); /* Chegarani yanada shaffof qilish */
    transform: scale(1); /* Bosilganda kattalashishi uchun */
    background: linear-gradient(135deg, rgba(90, 245, 222, 0.4), rgba(33, 156, 119, 0.4));
}

/* Hover effekti */
.filter-btn:hover {
    background-color: #219c77;
    color: rgb(255, 255, 255);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Hover paytida soyani kuchaytirish */
    transform: scale(1.05); /* Tugmani biroz kattalashtirish */
    background: linear-gradient(135deg, rgba(33, 156, 119, 0.6), rgba(26, 122, 94, 0.6));
}

/* Active (bosilganda) effekti */
.filter-btn:active {
    transform: scale(1.1); /* Tugmani bosilganda kattalashtirish */
    background-color: #1a7a5e; /* Rangni biroz o'zgartirish */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2); /* Soyani kamaytirish */
  
/*   
    animation: clickEffect 0.2s ease;
}
@keyframes clickEffect {
    0% { transform: scale(1); }
    50% { transform: scale(0.9); }
    100% { transform: scale(1); } */
}

/* Active klass (qo'shimcha) */
.filter-btn.active {
    background-color: #219c77;
    color: rgb(255, 255, 255);
    font-weight: bold;
    border-radius: 8px;
    transform: scale(1.05); /* Active holatda biroz kattalashtirish */
}

.print-btn {
    background-color: #04579b;
    color: white;
    border: none;
    padding: 5px 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 9px;
    margin-left: auto; /* Print tugmasini o'ng tomonga surish */
    margin-right: 10px; /* O'ng tomondan bo'shliq */
}

.print-btn:hover {
    background-color: #069167;
}

@media print {
    body * {
        visibility: hidden; /* Barcha elementlarni yashirish */
    }

    .print-section, .print-section * {
        visibility: visible; /* Faqat print uchun ajratilgan qismni ko'rsatish */
    }

    .print-section {
        width: 80%;
        max-width: 500px;
        padding: 12px 40px 12px 12px;
        font-size: 16px;
        border: 2px solid #249081;
        border-radius: 5px;
        text-align: left;
        margin-bottom: 5px;
        outline: none;
        transition: border-color 0.3s ease;
    }

    .print-section table {
        width: 100%;
        border-collapse: collapse;
    }

    .print-section th, .print-section td {
        border: 1px solid #000;
        padding: 8px;
        text-align: left;
    }

    .print-section th {
        background-color: #249081;
        color: white;
    }
}

#refresh-section {
    text-align: center;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

#home-button, #refresh-button {
    padding: 10px 20px;
    background-color: #249081;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Matn va animatsiya orasidagi bo'shliq */
    transition: all 0.3s ease; /* Animatsiya uchun */
    width: auto; /* O'lchamni moslashuvchan qilish */
    min-width: 150px; /* Minimal kenglik */
}

#home-button:hover, #refresh-button:hover {
    background: linear-gradient(90deg, #90b9ad, #2382a1, #04365c);
    transform: scale(1.05); /* Tugmani kattalashtirish */
}

#home-button:active, #refresh-button:active {
    transform: scale(0.95); /* Bosilganda kichraytirish */
}




#loading-spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: none; /* Boshlang'ich holatda yashirish */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none;
}

.visible {
    display: inline-block;
}



/*test uchun effectlar*/

//
.text-effect-1 {
    font-family: 'Arial', sans-serif; /* Shrift turi */
    font-size: 24px; /* Shrift o'lchami */
    color: #ff5733; /* Matn rangi */
    letter-spacing: 2px; /* Harflar orasidagi masofa */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Matn soyasi */
}


.text-effect-2 {
    font-family: 'Georgia', serif;
    font-size: 28px;
    background: linear-gradient(90deg, #ff5733, #33ff57); /* Gradient fon */
    -webkit-background-clip: text; /* Gradientni matn uchun qo'llash */
    -webkit-text-fill-color: transparent; /* Matn rangini shaffof qilish */
    letter-spacing: 3px;
}

.text-effect-3 {
    font-family: 'Courier New', monospace;
    font-size: 22px;
    color: #3366ff;
    animation: moveText 3s infinite; /* Animatsiya */
}

@keyframes moveText {
    0% { transform: translateX(0); }
    50% { transform: translateX(20px); }
    100% { transform: translateX(0); }
}


.text-effect-4 {
    font-family: 'Verdana', sans-serif;
    font-size: 26px;
    color: white;
    background-color: #333; /* Fon rangi */
    padding: 10px 20px; /* Matn atrofidagi bo'shliq */
    border-radius: 10px; /* Qirralarni yumaloq qilish */
    display: inline-block; /* Matnni blok qilish */
}


.text-effect-5 {
    font-family: 'Times New Roman', serif;
    font-size: 30px;
    color: #ff33cc;
    transform: rotate(-5deg); /* Matnni aylantirish */
    display: inline-block;
}

.text-effect-6 {
    font-family: 'Arial', sans-serif;
    font-size: 32px;
    color: #33ccff;
    text-shadow: 0 0 10px #33ccff, 0 0 20px #33ccff; /* Yoritish effekti */
}

.text-effect-7 {
    font-family: 'Helvetica', sans-serif;
    font-size: 24px;
    color: #ff9900;
    transition: transform 0.3s ease; /* Siljish effekti */
}

.text-effect-7:hover {
    transform: translateY(-5px); /* Sichqoncha olib borilganda matnni yuqoriga siljitish */
}

.text-effect-8 {
    font-family: 'Arial', sans-serif;
    font-size: 24px;
    color: #33ff57;
    transition: transform 0.3s ease; /* Kattalashish effekti */
}

.text-effect-8:hover {
    transform: scale(1.2); /* Sichqoncha olib borilganda matnni kattalashtirish */
}

.text-effect-9 {
    font-family: 'Georgia', serif;
    font-size: 26px;
    color: #ff3333;
    text-decoration: underline; /* Pastki chiziq */
    text-decoration-color: #33ff57; /* Chiziq rangi */
    text-decoration-thickness: 3px; /* Chiziq qalinligi */
}


.text-effect-10 {
    font-family: 'Courier New', monospace;
    font-size: 28px;
    color: white;
    background: linear-gradient(90deg, #ff5733, #33ff57, #3366ff); /* Gradient fon */
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientAnimation 5s infinite; /* Animatsiya */
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


.text-effect-11 {
    font-family: 'Arial', sans-serif;
    font-size: 32px;
    background: linear-gradient(90deg, #ff5733, #33ff57, #3366ff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientAnimation 5s infinite;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.text-effect-12 {
    font-family: 'Verdana', sans-serif;
    font-size: 28px;
    color: #ff33cc;
    transform: rotate(-5deg);
    display: inline-block;
    transition: transform 0.3s ease;
}

.text-effect-12:hover {
    transform: rotate(0deg) scale(1.2);
}


.text-effect-13 {
    font-family: 'Courier New', monospace;
    font-size: 36px;
    color: #33ccff;
    text-shadow: 0 0 10px #33ccff, 0 0 20px #33ccff, 0 0 30px #33ccff;
    animation: neonGlow 1.5s infinite alternate;
}

@keyframes neonGlow {
    0% { text-shadow: 0 0 10px #33ccff, 0 0 20px #33ccff, 0 0 30px #33ccff; }
    100% { text-shadow: 0 0 20px #33ccff, 0 0 40px #33ccff, 0 0 60px #33ccff; }
}


.text-effect-14 {
    font-family: 'Georgia', serif;
    font-size: 24px;
    color: #ff5733;
    transition: transform 0.3s ease, color 0.3s ease;
}

.text-effect-14:hover {
    transform: translateY(-10px);
    color: #33ff57;
}




.text-effect-15 {
    font-family: 'Helvetica', sans-serif;
    font-size: 26px;
    color: #3366ff;
    position: relative;
    display: inline-block;
}

.text-effect-15::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: #3366ff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.text-effect-15:hover::after {
    transform: scaleX(1);
}






.text-effect-16 {
    background: linear-gradient(100deg, #249081, #249081, #249020);
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.2);
    display: inline-block;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #ffffff;
    transform: rotate(-3deg); /* Matnni aylantirish */
    display: inline-block;
}


