* {
  box-sizing: border-box;
  margin: 4px;
  padding: 4px;
  font-size: x-large;
}
body {
  font-family: Arial, sans-serif;
  justify-content: center;
  align-items: center;
  background-color: #222;
  color: #eee;
  
  display: flex;
  padding: 8px;
  margin: 0;
}
div.card {
  background: #222;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  width: 400px;
  text-align: center;
}

div.flat {
  background: #222;
  padding: 0px;
  margin: 0px 8px;
  border-radius: 0px;
  width: auto;
  max-height: none;
  display: block;
}

div.flat-large {
  width: 600px;
}

div.card-large {
  background: #222;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  width: 600px;
  text-align: center;
}

div.form-box {
  flex: 3;
}

div.table-box {
  flex: 1;
  width: auto;
  padding: 8px;
  max-height: 600px; /* balandlik chegarasi */
  overflow-y: auto; /* scroll qo‘shiladi */
  overflow-x: hidden;
  background: #222;
}

div.header {
  background: #afa;
  color: #222;
  padding: 8px 16px;
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

.container {
  max-width: none;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 8px;
}

span.error {
  color: red;
  font-size: small;
  font-style: italic;
  text-align: center;
}

h1,
h2,
h3 {
  margin-bottom: 8px;
}
input {
  background-color: #444; 
  color: #fff;
  width: 100%;
  padding: 8px;
  margin: 8px 0;
  border: 2px solid #aaa;
  border-radius: 4px;
  min-width: 300px;
  max-width: auto;
}

input.large {
  width: 400px;
  color: #fff;
}

textarea {
  width: 100%;
  color: #fff;
  background-color: #444;
  padding: 8px;
  height: 200px;
  min-height: 100px;
  max-height: 400px;
  min-width: 400px;
  resize: vertical;
}

textarea.large {
  color: #fff;
  background-color: #444;
  height: 400;
}

textarea.small {
  color: #fff;
  background-color: #444;
  height: 100px;
}

input:not(:disabled):hover {
  color: #fff;
  background-color: #444;
  border-color: #1f1;
  color: #000;
}

a {
  display: block;
  margin-top: 10px;
  color: #007bff;
  text-decoration: none;
}

a.logout {
  display: block;
  padding: 8px;
  border-radius: 4px;
  margin-top: 10px;
  color: #f44;
  text-decoration: none;
}

a.logout:hover {
  color: #f00;
  background-color: #faa;
}

button {
  width: 100%;
  padding: 16px 32px;
  background-color: #3c3;
  color: #eee;
  font-weight: bold;
  font-size: medium;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button.letter {
  padding: 8px;
}

button.logout {
  background-color: #c33;
  color: #eee;
}

button.logout:not(:disabled):hover {
  background-color: #f11;
  color: #fff;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  background-color: #ccc;
  color: #666;
}

button:not(:disabled):hover {
  background-color: #1f1;
  color: #fff;
}

table {
  padding: 8px;
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 4px 8px;
  border: 1px solid #ccc;
  text-align: left;
}
th {
  background: #afa;
  color: #333;
}

form {
  max-width: auto;
  margin: auto;
  background: #222;
  padding: 16px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

label {
  font-weight: bold;
  margin-top: 10px;
  display: block;
}

.center {
  text-align: center;
  align-items: center;
}

/* Select umumiy ko‘rinishi */
select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #222;
  appearance: none; /* brauzer default o‘qchasi yashiriladi */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23007acc' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

/* Hover effekti */
select:hover {
  border-color: #1f1;
}

/* Fokuslangan holat */
select:focus {
  outline: none;
  border-color: #55f;
  box-shadow: 0 0 4px rgba(0, 122, 204, 0.3);
}

/* Option elementlari */
option {
  padding: 10px;
  font-size: 14px;
}
 
/* Tanlangan option */
option:checked {
  background: #4f4;
  color: #222;
}


