body {
  margin: 0;
  font-family: 'Inter', 'Roboto', Arial, sans-serif;
  background: #f7f9fb;
  color: #222;
}

body.loading-locked {
  overflow: hidden;
}

.container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background: #fff;
  color: #222;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0 28px 0;
  box-shadow: 2px 0 16px rgba(60,60,100,0.06);
  border-top-right-radius: 32px;
  border-bottom-right-radius: 32px;
  border-right: 1.5px solid #e0e6ed;
}

.sidebar h1 {
  font-size: 1.7rem;
  margin-bottom: 36px;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: #3b5bdb;
  text-shadow: none;
}

.nav {
  width: 100%;
  padding-left: 18px;
  padding-right: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.nav button {
  background: #fff;
  border: 1.5px solid #e0e6ed;
  color: #222;
  font-size: 1.08rem;
  padding: 18px 18px;
  width: 220px;
  margin: 0 auto;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  transition: background 0.18s, border 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 4px #e0e6ed33;
  font-weight: 500;
}

.nav button:hover, .nav button.active {
  background: #f2f6fc;
  border-color: #b6c3e2;
  color: #3b5bdb;
  box-shadow: 0 2px 8px #e0e6ed55;
}

.nav button i {
  font-size: 1.3em;
  min-width: 24px;
  text-align: center;
  filter: none;
  color: #3b5bdb;
}

.main {
  flex: 1;
  padding: 56px 6vw;
  background: #f7f9fb;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 rgba(60,60,100,0.07);
  padding: 36px 32px 32px 32px;
  margin-bottom: 36px;
  border: 1.5px solid #e0e6ed;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 8px 32px 0 #e0e6ed55;
  transform: translateY(-1px) scale(1.01);
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.loading-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.loading-content {
  text-align: center;
  color: #fff;
  padding: 32px 48px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  min-width: 240px;
}

.loading-spinner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.2);
  border-top-color: #facc15;
  margin: 0 auto 18px auto;
  animation: loading-spin 0.9s linear infinite;
}

@keyframes loading-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

input, select, button {
  font-family: inherit;
}

input, select {
  padding: 12px 16px;
  border: 1.5px solid #e0e6ed;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 1.08rem;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  transition: border 0.18s, box-shadow 0.18s;
}
input:focus, select:focus {
  border: 1.5px solid #3b5bdb;
  box-shadow: 0 0 0 2px #b6c3e233;
  outline: none;
}

button[type="submit"], .main button:not(.sidebar-btn) {
  background: #fff;
  color: #3b5bdb;
  border: 1.5px solid #e0e6ed;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 1.08rem;
  cursor: pointer;
  margin-top: 12px;
  box-shadow: 0 1px 4px #e0e6ed33;
  transition: background 0.18s, border 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
  font-weight: 600;
  letter-spacing: 0.5px;
}
button[type="submit"]:hover, .main button:not(.sidebar-btn):hover {
  background: #f2f6fc;
  border-color: #b6c3e2;
  color: #222;
  box-shadow: 0 2px 8px #e0e6ed55;
  transform: translateY(-1px) scale(1.03);
}

.item-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .container {
    flex-direction: column;
  }
  .sidebar {
    flex-direction: row;
    width: 100%;
    height: 80px;
    padding: 12px 10px 18px 10px;
    border-radius: 0 0 32px 32px;
    box-shadow: 0 2px 16px rgba(60,60,100,0.06);
    border-right: none;
    border-bottom: 1.5px solid #e0e6ed;
  }
  .sidebar h1 {
    margin: 0 24px 0 0;
    font-size: 1.2rem;
  }
  .nav {
    flex-direction: row;
    gap: 14px;
    padding: 0 8px;
  }
  .nav button {
    font-size: 1rem;
    padding: 10px 10px;
    width: 120px;
  }
  .main {
    padding: 24px 16px;
  }
  .card {
    padding: 24px 16px;
    margin-bottom: 28px;
    border-bottom: 2px dotted #b0b0b0;
    padding-bottom: 28px;
  }
  h2 {
    margin-top: 0;
    margin-bottom: 16px;
  }
  input, select {
    margin-bottom: 14px;
  }
  button[type="submit"], .main button:not(.sidebar-btn) {
    margin-top: 8px;
    margin-bottom: 8px;
  }
}