/* Admin Dashboard Styles */

.subtitle {
  color: #666;
  font-size: 1.1rem;
  margin-top: -1rem;
  margin-bottom: 2rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s;
}

.stat-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.stat-card h3 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem 0;
  color: #0066cc;
}

.stat-card p {
  margin: 0 0 1rem 0;
  color: #666;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-link {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
}

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

/* Quick Actions */
.quick-actions {
  margin: 3rem 0;
}

.quick-actions h2 {
  border-bottom: 2px solid #0066cc;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.action-group {
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.action-group h3 {
  margin-top: 0;
  color: #333;
  font-size: 1.1rem;
}

.action-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.action-group ul li {
  margin: 0.5rem 0;
}

.action-group ul li a {
  color: #0066cc;
  text-decoration: none;
}

.action-group ul li a:hover {
  text-decoration: underline;
}

.code-snippet {
  margin-top: 1rem;
}

.code-snippet pre {
  background-color: #333;
  color: #fff;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.9rem;
}

.code-snippet code {
  font-family: 'Courier New', monospace;
}

/* Recent Activity */
.recent-activity {
  margin: 3rem 0;
}

.recent-activity h2 {
  border-bottom: 2px solid #0066cc;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.recent-activity table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.recent-activity th {
  background: #f5f5f5;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #ddd;
}

.recent-activity td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eee;
}

.recent-activity tr:hover {
  background: #fafafa;
}

.recent-activity a {
  color: #0066cc;
  text-decoration: none;
}

.recent-activity a:hover {
  text-decoration: underline;
}

.severity-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.severity-badge.severity-high {
  background: #fee;
  color: #c00;
}

.severity-badge.severity-medium {
  background: #fff5e6;
  color: #f80;
}

.severity-badge.severity-low {
  background: #efe;
  color: #080;
}

/* Admin CRUD Tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  margin: 2rem 0;
}

.admin-table th {
  background: #f5f5f5;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #ddd;
}

.admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eee;
}

.admin-table tr:hover {
  background: #fafafa;
}

/* Admin Forms */
.admin-form {
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 2rem;
  margin: 2rem 0;
  max-width: 800px;
}

.admin-form .field {
  margin-bottom: 1.5rem;
}

.admin-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form input[type="date"],
.admin-form input[type="email"],
.admin-form textarea,
.admin-form select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

.admin-form textarea {
  min-height: 150px;
  resize: vertical;
}

.admin-form .actions {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.admin-form input[type="submit"],
.admin-form button {
  background: #0066cc;
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.admin-form input[type="submit"]:hover,
.admin-form button:hover {
  background: #0052a3;
}

/* Navigation Breadcrumbs */
.admin-breadcrumb {
  margin-bottom: 1.5rem;
  color: #666;
}

.admin-breadcrumb a {
  color: #0066cc;
  text-decoration: none;
}

.admin-breadcrumb a:hover {
  text-decoration: underline;
}

/* Action Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #0066cc;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.2s;
}

.btn:hover {
  background: #0052a3;
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background: #666;
}

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

.btn-danger {
  background: #c00;
}

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

.btn-small {
  padding: 0.25rem 0.75rem;
  font-size: 0.9rem;
}
