﻿body {
    background-color: #f1f1f1;
    font-family: Arial, Helvetica, sans-serif;
    color: #333333;
    margin: 0;
    padding: 0;
    width: 100%;
}

#wrapper {
    width: 100%;
    background-color: #f8f8f8;
    margin: 0;
    border-left: none;
    border-right: none;
}

#header {
    width: 100%;
    height: 200px;
    margin: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #ccc;
    border-top: 1px solid #ffffff;
    box-sizing: border-box;

}

#header {
  background-image: url('img/background.png');
  background-size: 400px 200px; /* eni: 400px, bo‘yi: 200px */
  background-repeat: no-repeat;
  background-position: center;
}

#header h2 {
    padding: 5px;
    text-align: center;
    margin: 0;
}
#header table{
    width: 100%;
}


.nav-sidebar-container {
    width: 970px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #ccc;
}

#nav {
    width: 100%;
    height: auto;
    margin-left: px; 
    border-bottom: 1px solid #ccc;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    position: relative;
    background-color: #f8f8f8;
}

.logo img {
    margin-left: 0px; /* Logodan keyin ozgina joy, masalan 5px */
    height: 50px; /* Logoning balandligi, kerak bo‘lsa o‘zgartiring */
    width: 300px;
    margin-right: 0px; /* Logodan keyingi menyular uchun masofa */
}



#nav a {
    display: inline-block;
    padding: 8px 15px;
    margin: 2px 5px;
    text-decoration: none;
    background-color: #ffffff;
    color: #30247e;
    font-size: 16px;
    white-space: nowrap;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

#nav a:hover {
    background-color: #30247e;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Select elementiga mos stil */
.menu select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    color: #30247e;
    font-size: 14px;
}
.dropdown {
    position: relative;
    display: inline-block;
    margin: 2px 2px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 4px;
    text-align: left;
    border: 1px solid #e0e0e0;
    margin-top: 0;
    padding: 5px 0;
}

.dropdown-content a {
    color: #333;
    padding: 5px 10px;
    text-decoration: none;
    display: block;
    margin: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap;
    background-color: whitesmoke;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
    color: #30247e;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content:hover {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #006EDB;
    /*color: #ffffff;*/
}


#nav select {
    padding: 8px 15px;
    margin: 2px 5px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #ffffff;
    color: #30247e;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

#nav select:hover {
    background-color: #f8f8f8;
    border-color: #ffffff;
}

#nav select:focus {
    border-color: #30247e;
    box-shadow: 0 0 0 2px rgba(0,110,219,0.1);
}

@media screen and (max-width: 970px) {
    #nav {
        width: 100%;
    }
    
    #nav a {
        font-size: 16px;
        padding: 4px 6px;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        width: 100%;
    }
}

td {
    padding: 10px;
}
#content {
    
    width: calc(100% - 200px); /* Ikki chetdan 40px + 40px = 80px ayiriladi */
    float: left;
    text-align: center;
    padding: 20px;
    min-height: 600px;
    box-sizing: border-box;
    margin: 0 100px; /* Ikki chetga 40px margin qo'shish */
    justify-content: center;
    align-items: center;
}

#content p {
    font-size: 18px;
    text-align: left;
    font-family: Arial, sans-serif;
    text-align: justify;
}

#content h2 {
    text-align: center;
    color: #30247e;
}

#content li {
    font-size: 18px;
    text-align: left;
    font-family: Arial, sans-serif;
    padding: 5px;
}
/*
#sidebar {
    width: 210px;
    margin-bottom: 25px;
}

#sidebar a {
    text-decoration: none;
    padding: 5px 2px;
    color: #006EDB;
}

#sidebar a:hover {
    background-color: #D4DBBB;
    color: #A4510F;
    height: 40px;
}

#sidebar li {
    list-style: none;
}
*/


.site-footer {
    
    width: 100%;
    margin: 0 auto;
    background-color: #e1e7fa; 
    color: #30247e;
    padding: 20px 0;
}

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

.footer-column {
    vertical-align: top;
    padding: 15px;
    text-align: left;
}


.title {
    color: #30247e;
    font-size: 16px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.thim-header-info {
    list-style: none;
    padding: 0;
    align-items: center;
}

.thim-header-info.horizontal {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    
}

.thim-header-info.horizontal li {
    display: inline-block;
    margin: 0 5px;
}

.thim-header-info.horizontal li a {
    color: #30247e;
    text-decoration: none;
    font-size: 14px;
}

.thim-header-info.horizontal li a:hover {
    color: #30247e;
}

.thim-header-info .tk {
    color: #30247e;
    margin-right: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-top: 1px solid #333;
    margin-top: 20px;
}

.footer-bottom p {
    color: #878787;
    font-size: 12px;
    margin: 0;
}

.footer-bottom .thim-header-info.horizontal li a {
    color: #878787;
    font-size: 12px;
}

@media (max-width: 767px) {
    
     .site-footer {
        width: 100%;
        max-width: 100%; /* mobil uchun to‘liq ekran */
        padding: 10px 0; /* mobilga kichik padding */
    }
    
    .footer-table {
        display: block;
    }
    .footer-column {
        display: block;
        width: 100% !important;
    }
    .thim-header-info.horizontal {
        flex-direction: column;
        gap: 2px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-bottom .thim-header-info {
        margin-top: 10px;
    }
}

pre {
    font-family: 'Times New Roman', Arial, sans-serif;
    font-size: 16px;

}

input[type='submit'] {
    width: 250px;
}

.success-message {
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #30247e;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.error-message {
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}
.lokatsiya-section {
    margin-top: 20px;
   
    position: relative;

}
#map {
    height: 400px;
    width: 100%;
    border: 1px solid #ccc;
}