/* Global sozlamalar */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #e3f2fd, #ffffff);
  color: #222;
}

/* Header */
header {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #2196f3, #21cbf3);
  color: white;
  border-bottom: 5px solid #1976d2;
}

header img {
  width: 120px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

header h2 {
  margin-top: 10px;
  font-size: 28px;
}

/* Aside - Valyuta ma'lumotlari */
aside {
  padding: 30px;
  background-color: #f7f9fc;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  margin: 20px;
}

aside img {
  width: 80px;
  display: block;
  margin: 20px auto 10px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

aside h3 {
  text-align: center;
  color: #0d47a1;
}

aside ul {
  background: #ffffff;
  padding: 15px 20px;
  border-radius: 10px;
  list-style-type: square;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 30px;
}

aside ul li {
  padding: 6px 0;
  font-size: 16px;
}

/* Navbar */
#navbar a {
  color: white;
  text-decoration: none;
  padding: 10px 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  border-radius: 8px;
}

#navbar a:hover {
  background-color: #0d47a1;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
#navbar {
  display: flex;
  justify-content: center;
  gap: 20px;
  background-color: #1976d2;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
/* Umumiy uslub */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(120deg, #f5f7fa, #c3cfe2);
  color: #333;
  text-align: center;
}

/* Rasm va sarlavha */
img {
  width: 120px;
  margin-top: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

h2 {
  margin-top: 10px;
  font-size: 1.6rem;
  color: #1a237e;
}

/* Form uslubi */
form {
  max-width: 400px;
  margin: 30px auto;
  padding: 25px;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Label va inputlar */
label {
  font-weight: bold;
  color: #37474f;
  text-align: left;
}

input,
select {
  padding: 10px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  transition: 0.3s;
}

input:focus,
select:focus {
  border-color: #1976d2;
  outline: none;
  box-shadow: 0 0 5px #64b5f6;
}

/* Tugma */
button {
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  background-color: #1976d2;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background-color: #1565c0;
}

/* Natija */
#output {
  margin-top: 20px;
  font-size: 1.4rem;
  font-weight: bold;
  color: #2e7d32;
}
/* Contact sahifasi uchun konteyner */
.container {
  max-width: 600px;
  margin: 50px auto;
  background-color: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* Contact sarlavhalari */
.container h2 {
  font-size: 2rem;
  color: #1a237e;
  margin-bottom: 20px;
}

.container h4 {
  margin: 15px 0 5px;
  font-size: 1.2rem;
  color: #37474f;
}

/* Contact havolalar */
.container a {
  display: inline-block;
  color: #1976d2;
  text-decoration: none;
  font-size: 1.05rem;
  margin-bottom: 10px;
  transition: 0.3s;
}

.container a:hover {
  text-decoration: underline;
  color: #0d47a1;
}
/* Contact sahifasi uchun link tugmalari */
.container a {
  display: inline-block;
  background: linear-gradient(135deg, #1e88e5, #42a5f5);
  color: white;
  padding: 10px 20px;
  margin: 8px 0;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(30, 136, 229, 0.3);
  transition: all 0.3s ease;
}

.container a:hover {
  background: linear-gradient(135deg, #1565c0, #2196f3);
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(21, 101, 192, 0.4);
}
.result-box {
    margin-top: 15px;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    font-size: 16px;
    color: #333;
    width: 250px; /* inputga o‘xshash kenglik */
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.hidden {
    display: none;
}
@media only screen and (min-width: 768px) {
    form {
        width: 50%;
        margin: 50px auto;
    }
    
    nav {
        text-align: center;
    }

    nav a {
        padding: 14px 30px;
    }

    header h2 {
        font-size: 2rem;
    }
}

/* For small screens (mobile) */
@media only screen and (max-width: 768px) {
    form {
        width: 90%;
        margin: 10px auto;
    }

    header h2 {
        font-size: 1.5rem;
    }

    nav a {
        padding: 12px 20px;
    }
}

/* Extra small screens */
@media only screen and (max-width: 480px) {
    header h2 {
        font-size: 1.2rem;
    }

    nav a {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}
button {
    padding: 10px 20px;
    border: 2px solid #4CAF50;
    border-radius: 5px;
    background-color: white;
    cursor: pointer;
    transition: transform 0.2s ease;
}

button:hover {
    transform: scale(1.1);
}
button:active {
    transform: scale(0.9);
}
@media (max-width: 768px) {
    #navbar {
        flex-direction: column;
        align-items: center;
    }

    header h2 {
        font-size: 18px;
    }

    aside h3 {
        font-size: 16px;
    }

    aside ul {
        padding-left: 20px;
    }
}