/* Responsive container */
.container {
  max-width: 1100px;
  width: 95vw;
  margin: 40px auto;
  padding: 24px;
  background: #f9f9fb;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: block;
}

/* Responsive for mobile */
@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
    padding: 12px;
  }
}
@media (max-width: 700px) {
  .container {
    max-width: 100vw;
    padding: 4px;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

/* Modern button style */
.btn {
  display: inline-block;
  background: #4f8cff;
  color: #fff;
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(79,140,255,0.08);
}
.btn:hover, .btn:focus {
  background: #3564b2;
  outline: none;
}

/* Optional: style for form labels/inputs */
label {
  font-weight: 500;
  margin-bottom: 6px;
}
input, select, textarea {
  padding: 8px 10px;
  border: 1px solid #d0d2e0;
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 14px;
  box-sizing: border-box;
}

/* Admin dashboard split layout */
.dashboard-wrapper {
  display: flex;
  min-height: 80vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow: hidden;
}
.dashboard-nav {
  width: 220px;
  background: #f5f7fa;
  padding: 32px 16px;
  border-right: 1px solid #e0e3ea;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.dashboard-nav a {
  color: #3564b2;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 0;
  border-radius: 4px;
  transition: background 0.15s;
}
.dashboard-nav a:hover, .dashboard-nav a.active {
  background: #eaf1ff;
}
.dashboard-content {
  flex: 1;
  padding: 40px 32px;
  min-width: 0;
}
@media (max-width: 900px) {
  .dashboard-wrapper {
    flex-direction: column;
  }
  .dashboard-nav {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e0e3ea;
    flex-direction: row;
    gap: 8px;
    padding: 12px 4px;
    overflow-x: auto;
  }
  .dashboard-content {
    padding: 24px 8px;
  }
}

/* User management layout */
.user-form-section {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  max-width: 420px;
  margin: 0 auto 32px auto;
  padding: 24px 28px 18px 28px;
}
.user-table-section {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  max-width: 900px;
  margin: 0 auto;
  padding: 18px 18px 28px 18px;
  overflow-x: auto;
}
.user-table-section table {
    border: 2px solid #bbb;
    border-collapse: collapse;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.user-table-section th, .user-table-section td {
    border: 1px solid #bbb;
    padding: 8px 12px;
    text-align: left;
}
.user-table-section th {
    background: #f9f9f9;
    font-weight: bold;
    font-size: 1.08em;
}
.user-table-section tr:nth-child(even) {
    background: #f5f7fa;
}
.user-table-section tr:hover {
    background: #eaf3fb;
}
.user-table-section td {
    vertical-align: middle;
}
.user-table-section td:last-child {
    text-align: center;
}
.user-table-section th, .user-table-section td {
  padding: 10px 8px;
  border-bottom: 1px solid #e0e3ea;
  text-align: left;
}
.user-table-section th {
  background: #f5f7fa;
  font-weight: 600;
}

/* Mobile responsiveness for user management sections */
@media (max-width: 600px) {
  .user-form-section, .user-table-section {
    max-width: 99vw;
    padding: 10px 4px;
    border-radius: 0;
    box-shadow: none;
  }
  .user-table-section table {
    font-size: 0.97rem;
    min-width: 400px;
  }
  .user-form-section label, .user-form-section input, .user-form-section select, .user-form-section button {
    font-size: 1rem;
    width: 100%;
    display: block;
    margin-bottom: 10px;
    box-sizing: border-box;
  }
  .user-form-section form {
    padding: 0;
  }
  .user-form-section h3, .user-table-section h3 {
    font-size: 1.15rem;
    text-align: center;
  }
}
#pdfPreviewContainer {
    background: #fff;
    border: 1px solid #ccc;
}
