/* ===== ASOSIY STILLAR ===== */
:root {
  /* Asosiy ranglar */
  --primary-color: #3a86ff;
  --primary-light: #e9f2ff;
  --primary-dark: #2563eb;
  --secondary-color: #4ade80;
  --secondary-light: #e6f7ec;
  --secondary-dark: #16a34a;
  --accent-color: #8b5cf6;

  /* Neytral ranglar */
  --background: #ffffff;
  --surface: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;

  /* Matn ranglari */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;

  /* Holat ranglari */
  --success: #4ade80;
  --warning: #fbbf24;
  --error: #f87171;
  --info: #60a5fa;

  /* Soyalar */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Radiuslar */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Animatsiya */
  --transition-fast: 150ms;
  --transition-normal: 250ms;
  --transition-slow: 350ms;

  /* Shrift o'lchamlari */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;

  /* Konteyner */
  --container-width: 1200px;
  --container-padding: 1rem;
}

/* Dark mode */
.dark-mode {
  --primary-color: #60a5fa;
  --primary-light: #1e3a8a;
  --primary-dark: #93c5fd;
  --secondary-color: #4ade80;
  --secondary-light: #064e3b;
  --secondary-dark: #a7f3d0;
  --accent-color: #a78bfa;

  --background: #0f172a;
  --surface: #1e293b;
  --card-bg: #1e293b;
  --border-color: #334155;

  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
}

/* ===== ASOSIY STILLAR ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", "Open Sans", "Segoe UI", sans-serif;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--background);
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== KONTEYNER ===== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ===== HEADER ===== */
.top-header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
  box-shadow: var(--shadow-md);
}

.top-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  color: white;
  font-weight: 700;
  font-size: var(--text-xl);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: white;
  color: var(--primary-color);
  border-radius: var(--radius-md);
  margin-right: 0.75rem;
  font-weight: 700;
}

.logo-text {
  letter-spacing: 0.5px;
}

.domain {
  font-weight: 400;
  opacity: 0.9;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: var(--radius-full);
  transition: background-color var(--transition-fast);
}

.social-icons a:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  position: relative;
  display: inline-block;
  width: 3rem;
  height: 1.5rem;
}

.dark-mode-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.dark-mode-toggle label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  transition: var(--transition-normal);
}

.dark-mode-toggle label:before {
  position: absolute;
  content: "";
  height: 1.1rem;
  width: 1.1rem;
  left: 0.2rem;
  bottom: 0.2rem;
  background-color: white;
  border-radius: 50%;
  transition: var(--transition-normal);
}

.dark-mode-toggle input:checked + label {
  background-color: rgba(255, 255, 255, 0.3);
}

.dark-mode-toggle input:checked + label:before {
  transform: translateX(1.5rem);
}

/* ===== MAIN WRAPPER ===== */
.main-wrapper {
  min-height: calc(100vh - 4rem - 12rem); /* Header va footer balandligini hisobga olgan holda */
  padding: 2rem 0;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  padding: 2rem 0;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--surface);
  color: var(--text-secondary);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-logo .logo-icon {
  background-color: var(--primary-color);
  color: white;
}

.footer-logo .logo-text {
  color: var(--text-primary);
}

.footer-menu ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-menu a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-menu a:hover {
  color: var(--primary-color);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background-color: var(--primary-color);
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

/* ===== TUGMALAR ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn i {
  margin-right: 0.5rem;
}

.btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: white;
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-success {
  background-color: var(--success);
  color: white;
  border-color: var(--success);
}

.btn-success:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
}

.btn-danger {
  background-color: var(--error);
  color: white;
  border-color: var(--error);
}

.btn-danger:hover {
  background-color: #ef4444;
  border-color: #ef4444;
}

.btn-link {
  background-color: transparent;
  color: var(--primary-color);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}

.btn-link:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

/* ===== FORMALAR ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--card-bg);
  background-clip: padding-box;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(58, 134, 255, 0.25);
}

.form-text {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.input-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
}

.input-group .form-control {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  margin-bottom: 0;
}

.input-group-prepend,
.input-group-append {
  display: flex;
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
  background-color: var(--surface);
  border: 1px solid var(--border-color);
}

.input-group-prepend .input-group-text {
  border-right: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group-append .input-group-text {
  border-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.input-group > .form-control:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group > .form-control:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* ===== KARTALAR ===== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: var(--card-bg);
  background-clip: border-box;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-header {
  padding: 1.25rem 1.5rem;
  margin-bottom: 0;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border-color);
}

.card-body {
  flex: 1 1 auto;
  padding: 1.5rem;
}

.card-title {
  margin-bottom: 1rem;
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
}

.card-subtitle {
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  font-size: var(--text-base);
  color: var(--text-secondary);
}

.card-text {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.card-footer {
  padding: 1.25rem 1.5rem;
  background-color: var(--surface);
  border-top: 1px solid var(--border-color);
}

/* ===== JADVALLAR ===== */
.table {
  width: 100%;
  margin-bottom: 1rem;
  color: var(--text-primary);
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 1rem;
  vertical-align: top;
  border-top: 1px solid var(--border-color);
}

.table thead th {
  vertical-align: bottom;
  border-bottom: 2px solid var(--border-color);
  background-color: var(--surface);
  color: var(--text-secondary);
  font-weight: 600;
  text-align: left;
}

.table tbody + tbody {
  border-top: 2px solid var(--border-color);
}

.table-sm th,
.table-sm td {
  padding: 0.5rem;
}

.table-bordered {
  border: 1px solid var(--border-color);
}

.table-bordered th,
.table-bordered td {
  border: 1px solid var(--border-color);
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: var(--surface);
}

.table-hover tbody tr:hover {
  background-color: var(--primary-light);
}

/* ===== OGOHLANTIRISHLAR ===== */
.alert {
  position: relative;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
}

.alert-heading {
  color: inherit;
  margin-bottom: 0.5rem;
}

.alert-link {
  font-weight: 700;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

.alert-warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

/* ===== BADGELAR ===== */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: var(--radius-full);
}

.badge-primary {
  color: #fff;
  background-color: var(--primary-color);
}

.badge-secondary {
  color: #fff;
  background-color: var(--secondary-color);
}

.badge-success {
  color: #fff;
  background-color: var(--success);
}

.badge-info {
  color: #fff;
  background-color: var(--info);
}

.badge-warning {
  color: #212529;
  background-color: var(--warning);
}

.badge-danger {
  color: #fff;
  background-color: var(--error);
}

/* ===== NAVIGATSIYA ===== */
.nav {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary-dark);
}

.nav-tabs {
  border-bottom: 1px solid var(--border-color);
}

.nav-tabs .nav-item {
  margin-bottom: -1px;
}

.nav-tabs .nav-link {
  border: 1px solid transparent;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
  border-color: var(--border-color) var(--border-color) var(--border-color);
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
  color: var(--text-primary);
  background-color: var(--card-bg);
  border-color: var(--border-color) var(--border-color) var(--card-bg);
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
  border-radius: var(--radius-md);
}

.page-link {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  margin-left: -1px;
  line-height: 1.25;
  color: var(--primary-color);
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
}

.page-link:hover {
  z-index: 2;
  color: var(--primary-dark);
  text-decoration: none;
  background-color: var(--surface);
  border-color: var(--border-color);
}

.page-link:focus {
  z-index: 3;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(58, 134, 255, 0.25);
}

.page-item:first-child .page-link {
  margin-left: 0;
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}

.page-item:last-child .page-link {
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

.page-item.active .page-link {
  z-index: 3;
  color: #fff;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-item.disabled .page-link {
  color: var(--text-tertiary);
  pointer-events: none;
  cursor: auto;
  background-color: var(--card-bg);
  border-color: var(--border-color);
}

/* ===== PROGRESS ===== */
.progress {
  display: flex;
  height: 0.5rem;
  overflow: hidden;
  line-height: 0;
  font-size: 0.75rem;
  background-color: var(--surface);
  border-radius: var(--radius-full);
}

.progress-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  background-color: var(--primary-color);
  transition: width 0.6s ease;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: 0;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 0.5rem;
  pointer-events: none;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: var(--card-bg);
  background-clip: padding-box;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  outline: 0;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  border-top-left-radius: calc(var(--radius-lg) - 1px);
  border-top-right-radius: calc(var(--radius-lg) - 1px);
}

.modal-title {
  margin-bottom: 0;
  line-height: 1.5;
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  padding: 1.25rem;
  border-top: 1px solid var(--border-color);
  border-bottom-right-radius: calc(var(--radius-lg) - 1px);
  border-bottom-left-radius: calc(var(--radius-lg) - 1px);
}

.modal-footer > * {
  margin: 0.25rem;
}

/* ===== UTILITIES ===== */
.text-center {
  text-align: center !important;
}

.text-right {
  text-align: right !important;
}

.text-left {
  text-align: left !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

.text-success {
  color: var(--success) !important;
}

.text-danger {
  color: var(--error) !important;
}

.text-warning {
  color: var(--warning) !important;
}

.text-info {
  color: var(--info) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-secondary {
  background-color: var(--secondary-color) !important;
}

.bg-success {
  background-color: var(--success) !important;
}

.bg-danger {
  background-color: var(--error) !important;
}

.bg-warning {
  background-color: var(--warning) !important;
}

.bg-info {
  background-color: var(--info) !important;
}

.bg-light {
  background-color: var(--surface) !important;
}

.bg-dark {
  background-color: var(--text-primary) !important;
}

.d-none {
  display: none !important;
}

.d-inline {
  display: inline !important;
}

.d-inline-block {
  display: inline-block !important;
}

.d-block {
  display: block !important;
}

.d-flex {
  display: flex !important;
}

.flex-row {
  flex-direction: row !important;
}

.flex-column {
  flex-direction: column !important;
}

.justify-content-start {
  justify-content: flex-start !important;
}

.justify-content-end {
  justify-content: flex-end !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.justify-content-around {
  justify-content: space-around !important;
}

.align-items-start {
  align-items: flex-start !important;
}

.align-items-end {
  align-items: flex-end !important;
}

.align-items-center {
  align-items: center !important;
}

.align-items-baseline {
  align-items: baseline !important;
}

.align-items-stretch {
  align-items: stretch !important;
}

.m-0 {
  margin: 0 !important;
}

.mt-0,
.my-0 {
  margin-top: 0 !important;
}

.mr-0,
.mx-0 {
  margin-right: 0 !important;
}

.mb-0,
.my-0 {
  margin-bottom: 0 !important;
}

.ml-0,
.mx-0 {
  margin-left: 0 !important;
}

.m-1 {
  margin: 0.25rem !important;
}

.mt-1,
.my-1 {
  margin-top: 0.25rem !important;
}

.mr-1,
.mx-1 {
  margin-right: 0.25rem !important;
}

.mb-1,
.my-1 {
  margin-bottom: 0.25rem !important;
}

.ml-1,
.mx-1 {
  margin-left: 0.25rem !important;
}

.m-2 {
  margin: 0.5rem !important;
}

.mt-2,
.my-2 {
  margin-top: 0.5rem !important;
}

.mr-2,
.mx-2 {
  margin-right: 0.5rem !important;
}

.mb-2,
.my-2 {
  margin-bottom: 0.5rem !important;
}

.ml-2,
.mx-2 {
  margin-left: 0.5rem !important;
}

.m-3 {
  margin: 1rem !important;
}

.mt-3,
.my-3 {
  margin-top: 1rem !important;
}

.mr-3,
.mx-3 {
  margin-right: 1rem !important;
}

.mb-3,
.my-3 {
  margin-bottom: 1rem !important;
}

.ml-3,
.mx-3 {
  margin-left: 1rem !important;
}

.m-4 {
  margin: 1.5rem !important;
}

.mt-4,
.my-4 {
  margin-top: 1.5rem !important;
}

.mr-4,
.mx-4 {
  margin-right: 1.5rem !important;
}

.mb-4,
.my-4 {
  margin-bottom: 1.5rem !important;
}

.ml-4,
.mx-4 {
  margin-left: 1.5rem !important;
}

.m-5 {
  margin: 3rem !important;
}

.mt-5,
.my-5 {
  margin-top: 3rem !important;
}

.mr-5,
.mx-5 {
  margin-right: 3rem !important;
}

.mb-5,
.my-5 {
  margin-bottom: 3rem !important;
}

.ml-5,
.mx-5 {
  margin-left: 3rem !important;
}

.p-0 {
  padding: 0 !important;
}

.pt-0,
.py-0 {
  padding-top: 0 !important;
}

.pr-0,
.px-0 {
  padding-right: 0 !important;
}

.pb-0,
.py-0 {
  padding-bottom: 0 !important;
}

.pl-0,
.px-0 {
  padding-left: 0 !important;
}

.p-1 {
  padding: 0.25rem !important;
}

.pt-1,
.py-1 {
  padding-top: 0.25rem !important;
}

.pr-1,
.px-1 {
  padding-right: 0.25rem !important;
}

.pb-1,
.py-1 {
  padding-bottom: 0.25rem !important;
}

.pl-1,
.px-1 {
  padding-left: 0.25rem !important;
}

.p-2 {
  padding: 0.5rem !important;
}

.pt-2,
.py-2 {
  padding-top: 0.5rem !important;
}

.pr-2,
.px-2 {
  padding-right: 0.5rem !important;
}

.pb-2,
.py-2 {
  padding-bottom: 0.5rem !important;
}

.pl-2,
.px-2 {
  padding-left: 0.5rem !important;
}

.p-3 {
  padding: 1rem !important;
}

.pt-3,
.py-3 {
  padding-top: 1rem !important;
}

.pr-3,
.px-3 {
  padding-right: 1rem !important;
}

.pb-3,
.py-3 {
  padding-bottom: 1rem !important;
}

.pl-3,
.px-3 {
  padding-left: 1rem !important;
}

.p-4 {
  padding: 1.5rem !important;
}

.pt-4,
.py-4 {
  padding-top: 1.5rem !important;
}

.pr-4,
.px-4 {
  padding-right: 1.5rem !important;
}

.pb-4,
.py-4 {
  padding-bottom: 1.5rem !important;
}

.pl-4,
.px-4 {
  padding-left: 1.5rem !important;
}

.p-5 {
  padding: 3rem !important;
}

.pt-5,
.py-5 {
  padding-top: 3rem !important;
}

.pr-5,
.px-5 {
  padding-right: 3rem !important;
}

.pb-5,
.py-5 {
  padding-bottom: 3rem !important;
}

.pl-5,
.px-5 {
  padding-left: 3rem !important;
}

.w-25 {
  width: 25% !important;
}

.w-50 {
  width: 50% !important;
}

.w-75 {
  width: 75% !important;
}

.w-100 {
  width: 100% !important;
}

.h-25 {
  height: 25% !important;
}

.h-50 {
  height: 50% !important;
}

.h-75 {
  height: 75% !important;
}

.h-100 {
  height: 100% !important;
}

.rounded {
  border-radius: var(--radius-md) !important;
}

.rounded-sm {
  border-radius: var(--radius-sm) !important;
}

.rounded-lg {
  border-radius: var(--radius-lg) !important;
}

.rounded-circle {
  border-radius: 50% !important;
}

.rounded-pill {
  border-radius: var(--radius-full) !important;
}

.rounded-0 {
  border-radius: 0 !important;
}

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow {
  box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

.shadow-none {
  box-shadow: none !important;
}

.font-weight-light {
  font-weight: 300 !important;
}

.font-weight-normal {
  font-weight: 400 !important;
}

.font-weight-bold {
  font-weight: 700 !important;
}

.font-italic {
  font-style: italic !important;
}

.text-decoration-none {
  text-decoration: none !important;
}

.text-break {
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}

.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }

  .d-sm-none {
    display: none !important;
  }

  .d-sm-inline {
    display: inline !important;
  }

  .d-sm-inline-block {
    display: inline-block !important;
  }

  .d-sm-block {
    display: block !important;
  }

  .d-sm-flex {
    display: flex !important;
  }

  .modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }

  .d-md-none {
    display: none !important;
  }

  .d-md-inline {
    display: inline !important;
  }

  .d-md-inline-block {
    display: inline-block !important;
  }

  .d-md-block {
    display: block !important;
  }

  .d-md-flex {
    display: flex !important;
  }

  .modal-dialog {
    max-width: 700px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }

  .d-lg-none {
    display: none !important;
  }

  .d-lg-inline {
    display: inline !important;
  }

  .d-lg-inline-block {
    display: inline-block !important;
  }

  .d-lg-block {
    display: block !important;
  }

  .d-lg-flex {
    display: flex !important;
  }

  .modal-dialog {
    max-width: 800px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: var(--container-width);
  }

  .d-xl-none {
    display: none !important;
  }

  .d-xl-inline {
    display: inline !important;
  }

  .d-xl-inline-block {
    display: inline-block !important;
  }

  .d-xl-block {
    display: block !important;
  }

  .d-xl-flex {
    display: flex !important;
  }
}

/* ===== MOBILE MENU ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1000;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin-right: 1.5rem;
}

.nav-menu a {
  color: white;
  font-weight: 500;
  transition: opacity 0.3s;
}

.nav-menu a:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--primary-color);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5rem 2rem 2rem;
    transition: right 0.3s ease;
    z-index: 999;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    width: 100%;
  }

  .nav-menu li {
    margin-right: 0;
    margin-bottom: 1.5rem;
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 0.5rem 0;
    font-size: 1.1rem;
  }
}

/* ===== TEST PLATFORMASI UCHUN MAXSUS STILLAR ===== */

/* Test kartasi */
.test-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 1.5rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.test-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.test-card-header {
  background-color: var(--primary-color);
  color: white;
  padding: 1.25rem 1.5rem;
}

.test-card-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.test-card-category {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.test-card-body {
  padding: 1.5rem;
}

.test-card-description {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.test-card-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.test-card-info-item {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.test-card-info-item i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.test-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
}

/* Test natija sahifasi */
.test-results {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
}

.result-header {
  background-color: var(--primary-color);
  color: white;
  padding: 1.5rem;
  text-align: center;
  position: relative;
}

.result-title {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.result-user {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.user-badge,
.date-badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
}

.user-badge i,
.date-badge i {
  margin-right: 0.5rem;
  font-size: 1rem;
}

.score-summary {
  padding: 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.result-circle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.result-circle {
  position: relative;
  width: 180px;
  height: 180px;
  margin-bottom: 1.25rem;
}

.percent {
  position: relative;
  width: 180px;
  height: 180px;
}

.percent svg {
  position: relative;
  width: 180px;
  height: 180px;
  transform: rotate(-90deg);
}

.percent svg circle {
  width: 100%;
  height: 100%;
  fill: none;
  stroke-width: 10;
  stroke: var(--surface);
  stroke-linecap: round;
  transform: translate(5px, 5px);
}

.percent svg circle:nth-child(2) {
  stroke-dasharray: 440;
  stroke-dashoffset: calc(440 - (440 * var(--percent)) / 100);
  stroke: var(--primary-color);
  animation: circleAnimation 2s ease-out forwards;
}

@keyframes circleAnimation {
  0% {
    stroke-dashoffset: 440;
  }
  100% {
    stroke-dashoffset: calc(440 - (440 * var(--percent)) / 100);
  }
}

.percent .number {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.percent .number h3 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  animation: fadeIn 1s ease-out forwards;
  opacity: 1;
  margin: 0;
}

.percent .number h3 span {
  font-size: 1.5rem;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: bold;
  font-size: 1rem;
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 1;
}

.score-badge i {
  margin-right: 0.5rem;
  font-size: 1.125rem;
}

.score-badge.success {
  background-color: var(--secondary-light);
  color: var(--secondary-dark);
}

.score-badge.good {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.score-badge.average {
  background-color: #fff3cd;
  color: #856404;
}

.score-badge.fail {
  background-color: #f8d7da;
  color: #721c24;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.stat-card {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  transition: all 0.3s;
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 1;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-right: 1rem;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Test savollari */
.question-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.question-number {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  background-color: var(--surface);
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.question-text {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.options-container {
  margin-bottom: 2rem;
}

.option-item {
  margin-bottom: 1rem;
}

.option-item input[type="radio"] {
  display: none;
}

.option-label {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s;
}

.option-label:hover {
  border-color: var(--primary-color);
  background-color: var(--primary-light);
}

.option-item input[type="radio"]:checked + .option-label {
  border-color: var(--primary-color);
  background-color: var(--primary-light);
}

.option-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  margin-right: 1rem;
  font-weight: bold;
  flex-shrink: 0;
}

.option-text {
  flex-grow: 1;
  color: var(--text-primary);
}

.question-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.test-progress {
  margin: 2rem 0;
}

.progress-label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.progress {
  height: 0.625rem;
  border-radius: var(--radius-full);
  background-color: var(--surface);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: var(--radius-full);
}

.question-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 2rem;
}

.question-dot {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: var(--surface);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
  color: var(--text-primary);
}

.question-dot.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.question-dot.answered {
  background-color: var(--primary-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.test-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

/* Natija sahifasidagi bo'limlar */
.section-breakdown {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: var(--surface);
  border-radius: var(--radius-lg);
}

.breakdown-title {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.section-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.section-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
  animation: fadeIn 0.8s ease-out forwards;
}

.section-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: var(--primary-color);
  color: white;
}

.section-header h4 {
  margin: 0;
  font-size: 1rem;
}

.section-badge {
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: bold;
}

.section-badge.good {
  background-color: var(--secondary-color);
}

.section-badge.average {
  background-color: var(--warning);
  color: #333;
}

.section-badge.poor {
  background-color: var(--error);
}

.section-details {
  padding: 1rem;
}

.section-progress {
  height: 0.5rem;
  background-color: var(--surface);
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  overflow: hidden;
}

.section-progress .progress-bar {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: var(--radius-full);
  transition: width 1s;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.detail-row:last-child {
  margin-bottom: 0;
}

.no-sections {
  padding: 1.25rem;
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
}

/* Animatsiyalar */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes animate-bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-bounce {
  animation: animate-bounce 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
  .result-stats {
    grid-template-columns: 1fr 1fr;
  }

  .test-actions {
    flex-direction: column;
  }

  .action-button {
    width: 100%;
  }

  .social-share {
    flex-direction: column;
  }

  .share-btn {
    width: 100%;
  }

  .other-tests-grid {
    grid-template-columns: 1fr;
  }

  .section-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .result-stats {
    grid-template-columns: 1fr;
  }

  .result-circle {
    width: 150px;
    height: 150px;
  }

  .percent {
    width: 150px;
    height: 150px;
  }

  .percent svg {
    width: 150px;
    height: 150px;
  }

  .percent .number h3 {
    font-size: 2.25rem;
  }

  .percent .number h3 span {
    font-size: 1.125rem;
  }

  .question-dots {
    gap: 0.5rem;
  }

  .question-dot {
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
  }
}

/* Add styles for the result verification page */
.key-verification-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.verification-card,
.key-entry-card,
.payment-info-card,
.available-tests-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeIn 0.8s ease-out forwards;
}

.verification-card:hover,
.key-entry-card:hover,
.payment-info-card:hover,
.available-tests-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.verification-card-header,
.key-entry-header,
.payment-info-header,
.available-tests-header {
  background-color: #4285f4;
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
}

.verification-card-header i,
.key-entry-header i,
.payment-info-header i,
.available-tests-header i {
  font-size: 24px;
  margin-right: 15px;
}

.verification-card-header h2,
.key-entry-header h2,
.payment-info-header h2,
.available-tests-header h2 {
  margin: 0;
  font-size: 20px;
}

.verification-card-body,
.key-entry-body,
.payment-info-body,
.available-tests-body {
  padding: 25px;
}

.key-input-container {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #4285f4;
}

.key-verification-form input[type="text"] {
  padding-left: 45px;
  font-size: 18px;
  letter-spacing: 2px;
  text-align: center;
  height: 50px;
  border: 2px solid #ddd;
  transition: all 0.3s;
}

.key-verification-form input[type="text"]:focus {
  border-color: #4285f4;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
}

.form-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

.btn-lg {
  padding: 12px 30px;
  font-size: 18px;
}

/* Update primary button color to match the blue theme */
.btn-primary {
  background-color: #4285f4;
  border-color: #4285f4;
}

.btn-primary:hover {
  background-color: #3367d6;
  border-color: #3367d6;
}

/* Add animation for the result page */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-bounce {
  animation: bounce 2s infinite;
}
