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

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

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

.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  padding: 40px;
  margin-bottom: 20px;
}

.card-header {
  text-align: center;
  margin-bottom: 30px;
}

.card-header h1 {
  color: #333;
  font-size: 28px;
  margin-bottom: 10px;
}

.card-header p {
  color: #666;
  font-size: 14px;
}

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

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

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

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
}

.btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  margin-top: 10px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: #f0f0f0;
  color: #333;
  margin-top: 10px;
}

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

.btn-danger {
  background: #dc3545;
  color: white;
}

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

.text-center {
  text-align: center;
  margin-top: 20px;
}

.text-center a {
  color: #667eea;
  text-decoration: none;
  font-size: 14px;
}

.text-center a:hover {
  text-decoration: underline;
}

.message {
  padding: 12px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-size: 14px;
  width: 100%;
}

.message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.message.info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Dashboard Styles */
.dashboard-container {
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  padding: 40px;
  max-width: 1000px;
  width: 100%;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.dashboard-header h1 {
  color: #333;
  font-size: 32px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-name {
  color: #666;
  font-size: 14px;
}

.btn-logout {
  background: #dc3545;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
}

.btn-logout:hover {
  background: #c82333;
}

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

.table thead {
  background: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
}

.table th {
  padding: 15px;
  text-align: left;
  color: #333;
  font-weight: 600;
  font-size: 14px;
}

.table td {
  padding: 15px;
  border-bottom: 1px solid #dee2e6;
  color: #666;
  font-size: 14px;
}

.table tbody tr:hover {
  background: #f8f9fa;
}

.table tbody tr:nth-child(even) {
  background: #f9f9f9;
}

.no-users {
  text-align: center;
  padding: 40px;
  color: #999;
}

/* Home Page */
.home-container {
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  padding: 60px 40px;
  text-align: center;
  max-width: 500px;
}

.home-container h1 {
  color: #333;
  font-size: 36px;
  margin-bottom: 20px;
}

.home-container p {
  color: #666;
  font-size: 16px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.home-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.home-buttons a {
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.home-buttons .btn-login {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.home-buttons .btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.home-buttons .btn-register {
  background: #f0f0f0;
  color: #333;
}

.home-buttons .btn-register:hover {
  background: #e0e0e0;
}

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

  .card {
    padding: 30px 20px;
  }

  .card-header h1 {
    font-size: 24px;
  }

  .dashboard-container {
    padding: 20px;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .user-info {
    width: 100%;
    justify-content: space-between;
  }

  .table {
    font-size: 12px;
  }

  .table th,
  .table td {
    padding: 10px;
  }

  .home-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .home-buttons a {
    width: 100%;
  }
}
