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

body {
  font-family: 'Roboto', sans-serif;
  background: #f5f5f5;
  color: #333;
}

/* Top Bar */
.top-bar {
  background: #1976d2;
  color: white;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.top-bar h1 {
  font-size: 20px;
  font-weight: 500;
}

.top-bar-right {
  display: flex;
  gap: 16px;
  align-items: center;
}

.badge {
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  transition: all 0.3s;
}

.btn-primary {
  background: #1976d2;
  color: white;
}

.btn-primary:hover {
  background: #1565c0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-secondary {
  background: #757575;
  color: white;
}

.btn-secondary:hover {
  background: #616161;
}

.btn-text {
  background: transparent;
  color: #1976d2;
}

.btn-text:hover {
  background: rgba(25, 118, 210, 0.1);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px;
}

/* Cards */
.card {
  background: white;
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

.card-title {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 16px;
  color: #1976d2;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  border-radius: 4px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  border-left: 4px solid #1976d2;
}

.stat-card h3 {
  font-size: 32px;
  font-weight: 500;
  color: #1976d2;
  margin-bottom: 8px;
}

.stat-card p {
  color: #757575;
  font-size: 14px;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

thead {
  background: #f5f5f5;
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

th {
  font-weight: 500;
  color: #757575;
  font-size: 12px;
  text-transform: uppercase;
}

tr:hover {
  background: #fafafa;
}

/* Form */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #757575;
  font-size: 14px;
}

input, select {
  width: 100%;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
}

input:focus, select:focus {
  outline: none;
  border-color: #1976d2;
}

/* Login Page */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
  background: white;
  border-radius: 8px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.login-card h1 {
  text-align: center;
  margin-bottom: 32px;
  color: #1976d2;
}

/* Dialog/Modal */
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.dialog-overlay.active {
  display: flex;
}

.dialog {
  background: white;
  border-radius: 4px;
  padding: 24px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.dialog-header {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 16px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}

/* Navigation */
.nav-bar {
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  padding: 0 24px;
  margin-bottom: 24px;
}

.nav-bar ul {
  list-style: none;
  display: flex;
  gap: 8px;
}

.nav-bar a {
  display: block;
  padding: 16px 20px;
  text-decoration: none;
  color: #757575;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

.nav-bar a:hover, .nav-bar a.active {
  color: #1976d2;
  border-bottom-color: #1976d2;
}

/* Status badges */
.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-active {
  background: #c8e6c9;
  color: #2e7d32;
}

.status-inactive {
  background: #ffcdd2;
  color: #c62828;
}

.status-pending {
  background: #fff9c4;
  color: #f57f17;
}

/* Utility classes */
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-muted { color: #757575; }

.flex {
  display: flex;
  gap: 16px;
  align-items: center;
}

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

.hidden {
  display: none;
}

.upload-section {
  padding: 20px;
  border: 2px dashed #ccc;
  border-radius: 8px;
  margin-bottom: 24px;
  text-align: center;
}

.file-input {
  margin-bottom: 16px;
  display: block;
}

.documents-list {
  margin-top: 24px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.table th,
.table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.table th {
  font-weight: 500;
  color: #666;
}
