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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 20px;
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.login-card {
  width: 100%;
  max-width: 400px;
}

h1, h2, h3 {
  color: #111;
  margin-bottom: 20px;
}

p {
  margin-bottom: 15px;
}

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

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

input[type="email"],
input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.2s;
}

input[type="email"]:focus,
input[type="text"]:focus {
  outline: none;
  border-color: #4f46e5;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background: #111;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.btn:hover {
  background: #333;
}

.btn-secondary {
  background: #6b7280;
}

.btn-secondary:hover {
  background: #4b5563;
}

.btn-danger {
  background: #dc2626;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-small {
  padding: 6px 12px;
  font-size: 14px;
}

.btn-success {
  background: #059669;
}

.btn-success:hover {
  background: #047857;
}

.message {
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.message-success {
  background: #d1fae5;
  color: #065f46;
}

.message-error {
  background: #fee2e2;
  color: #991b1b;
}

.message-info {
  background: #dbeafe;
  color: #1e40af;
}

/* Admin styles */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.header h1 {
  margin-bottom: 0;
}

.user-info {
  color: #666;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

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

th {
  background: #f9fafb;
  font-weight: 600;
}

tr:hover {
  background: #f9fafb;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.badge-admin {
  background: #fef3c7;
  color: #92400e;
}

.badge-internal {
  background: #dbeafe;
  color: #1e40af;
}

.badge-external {
  background: #e5e7eb;
  color: #374151;
}

.actions {
  display: flex;
  gap: 8px;
}

.add-user-form {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.add-user-form input {
  flex: 1;
}

/* Loading state */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Hidden class */
.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  .card {
    padding: 20px;
  }

  table {
    font-size: 14px;
  }

  th, td {
    padding: 8px;
  }

  .actions {
    flex-direction: column;
  }

  .add-user-form {
    flex-direction: column;
  }
}
