* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f5f7fa;
  color: #4a5568;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.home-header {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.home-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.home-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1a365d;
  display: flex;
  align-items: center;
}

.home-logo span {
  color: #3182ce;
}

.login-btn {
  background-color: #1a365d;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  text-decoration: none;
  border: none;
}

.hero {
  background-color: #1a365d;
  color: white;
  padding: 4rem 0;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-btn {
  background-color: white;
  color: #1a365d;
  padding: 1rem 2rem;
  border-radius: 0.25rem;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  border: none;
}

.hero-image {
  flex: 1;
  text-align: center;
}

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

.home-features {
  padding: 4rem 0;
}

.features-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.home-features h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #1a365d;
  margin-bottom: 3rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.home-feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  color: #1a365d;
  margin-bottom: 1rem;
}

.feature-card p {
  color: #4a5568;
}

.footer {
  background-color: white;
  padding: 2rem 0;
  border-top: 1px solid #e2e8f0;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  text-decoration: none;
  color: #4a5568;
  font-size: 0.875rem;
}

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

.auth-visual {
  flex: 1;
  background-color: #1a365d;
  color: white;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-mark {
  font-size: 1.5rem;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 0.5rem;
  border-radius: 0.25rem;
  color: white;
}

.auth-copy h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: white;
  line-height: 1.25;
}

.auth-copy p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.7;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-icon {
  background-color: rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.auth-card {
  flex: 1;
  background-color: white;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.auth-card > * {
  width: 100%;
  max-width: 400px;
}

.section-title h2 {
  color: #1a365d;
  margin-bottom: 1.5rem;
}

.section-title p {
  color: #4a5568;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.back-link {
  margin-bottom: 1rem;
}

.link-button {
  color: #3182ce;
  text-decoration: none;
  font-size: 0.875rem;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.link-button:hover {
  text-decoration: underline;
}

.forgot-password {
  text-align: right;
  margin-bottom: 1.5rem;
}

.forgot-password a {
  color: #3182ce;
  text-decoration: none;
  font-size: 0.875rem;
}

.forgot-password a:hover {
  text-decoration: underline;
}

.system-support {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #4a5568;
}

.segmented {
  display: flex;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.segmented button {
  flex: 1;
  padding: 0.75rem;
  text-align: center;
  cursor: pointer;
  color: #4a5568;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 1rem;
  transition: all 0.3s ease;
  border-radius: 0.5rem 0.5rem 0 0;
}

.segmented button:hover,
.segmented button.active {
  background-color: rgba(26, 54, 93, 0.1);
  color: #1a365d;
}

.segmented button.active {
  border-bottom-color: #1a365d;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(26, 54, 93, 0.2);
}

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

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #1a365d;
}

.sidebar {
  width: 250px;
  background-color: white;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  padding: 2rem 0;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 1000;
  overflow-y: auto;
  transition: transform 0.3s ease;
  color: #4a5568;
}

.sidebar .brand {
  padding: 0 2rem 2rem;
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
  color: #1a365d;
  border-bottom: 1px solid #e2e8f0;
  display: block;
}

.sidebar .brand-mark {
  display: none;
}

.user-block {
  padding: 1.5rem 2rem 0;
}

.user-block strong {
  display: block;
  color: #1a365d;
  margin-bottom: 0.25rem;
}

.user-block span {
  color: #718096;
  font-size: 0.875rem;
}

.nav {
  margin-top: 2rem;
  display: block;
}

.nav button,
.logout {
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: #4a5568;
  transition: all 0.3s ease;
  border: none;
  background: transparent;
  text-align: left;
}

.nav button:hover,
.logout:hover {
  background-color: #f7fafc;
  color: #1a365d;
}

.nav button.active {
  background-color: #ebf8ff;
  color: #1a365d;
  font-weight: 500;
}

.logout {
  position: absolute;
  bottom: 2rem;
  left: 0;
}

.main {
  flex: 1;
  padding: 2rem;
  margin-left: 250px;
  min-height: 100vh;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.topbar h1 {
  color: #1a365d;
  font-size: 1.5rem;
}

.topbar p {
  color: #718096;
  margin-top: 0.5rem;
}

.panel,
.card,
.stat {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: none;
}

.panel-pad {
  padding: 1.5rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-cards {
  grid-template-columns: repeat(3, 1fr);
}

.stat {
  padding: 1.5rem;
}

.stat span {
  color: #718096;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  display: block;
}

.stat strong {
  color: #1a365d;
  font-size: 2rem;
  font-weight: bold;
}

.quick-actions h2 {
  color: #1a365d;
  margin-bottom: 1rem;
}

.action-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.card {
  overflow: hidden;
  padding: 1.5rem;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 500;
  color: #1a365d;
  margin-bottom: 1rem;
}

.card p {
  color: #718096;
  line-height: 1.6;
  margin-top: 1rem;
}

.meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #718096;
}

.system-announcement {
  background-color: #ebf8ff;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.filters {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-select {
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.25rem;
  background-color: white;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.button {
  padding: 0.5rem 1rem;
  background-color: #e2e8f0;
  color: #4a5568;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  font-weight: 500;
  min-height: 40px;
}

.button:hover {
  background-color: #cbd5e0;
}

.button.primary {
  background-color: #1a365d;
  color: white;
}

.button.primary:hover {
  background-color: #2c5282;
}

.button.danger {
  background-color: #fed7d7;
  color: #e53e3e;
}

.button:disabled {
  background-color: #e2e8f0;
  color: #718096;
  cursor: not-allowed;
}

.form {
  width: 100%;
  max-width: 720px;
}

.auth-card .form {
  max-width: 400px;
}

.field {
  margin-bottom: 1.5rem;
}

.field label {
  display: block;
  margin-bottom: 0.5rem;
  color: #4a5568;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.25rem;
  font-size: 1rem;
  background-color: white;
  color: #4a5568;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.table-wrap {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  overflow-x: auto;
}

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

th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

th {
  background-color: #f7fafc;
  font-weight: 500;
  color: #4a5568;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: #ebf8ff;
  color: #1a365d;
}

.badge.warning {
  background-color: #f7fafc;
  color: #718096;
}

.badge.danger {
  background-color: #fed7d7;
  color: #e53e3e;
}

.empty {
  text-align: center;
  padding: 4rem;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pagination {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 1rem;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pagination span {
  display: inline-flex;
  align-items: center;
}

.toast {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  background-color: white;
  color: #4a5568;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 2000;
}

.hidden {
  display: none !important;
}

@media (max-width: 1024px) and (min-width: 769px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .home-container {
    padding: 0 1rem;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    margin-bottom: 2rem;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text p {
    font-size: 1.125rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-links {
    flex-direction: row;
    gap: 1rem;
  }

  .auth-page {
    flex-direction: column;
  }

  .auth-visual {
    padding: 2rem;
    text-align: center;
  }

  .brand {
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .auth-copy h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .auth-copy p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .features {
    align-items: center;
  }

  .feature {
    justify-content: center;
  }

  .auth-card {
    padding: 2rem;
  }

  .system-support {
    bottom: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .mobile-menu-toggle {
    display: block;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1100;
    background-color: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .main {
    margin-left: 0;
    padding: 1rem;
    padding-top: 4.5rem;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats,
  .grid,
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-select {
    width: 100%;
  }

  .pagination {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .home-container {
    padding: 0 0.75rem;
  }

  .home-logo {
    font-size: 1.25rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .cta-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }

  .home-features h2 {
    font-size: 2rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .feature-card h3 {
    font-size: 1.25rem;
  }

  .feature-card p {
    font-size: 0.875rem;
  }

  .footer-links {
    flex-direction: row;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .sidebar {
    width: 200px;
  }

  .sidebar .brand {
    font-size: 1.25rem;
    padding: 0 1rem 1rem;
  }

  .nav button,
  .logout {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }

  .topbar h1 {
    font-size: 1.25rem;
  }

  .card,
  .panel-pad,
  .stat {
    padding: 1rem;
  }
}
