:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f8f9fa;
}

.container-fluid {
  flex: 1;
}

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

.login-card {
  width: 100%;
  max-width: 450px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  overflow: hidden;
}

.login-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  text-align: center;
}

.login-header i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.login-body {
  padding: 2rem;
}

/* Dashboard Cards */
.dashboard-card {
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  margin-bottom: 24px;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.dashboard-card .card-body {
  padding: 1.5rem;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
}

.stat-icon.bg-primary-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-icon.bg-success-gradient {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.stat-icon.bg-warning-gradient {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-icon.bg-info-gradient {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.stat-label {
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Tables */
.table-card {
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: none;
}

.table-responsive {
  border-radius: 10px;
}

.table thead th {
  background-color: #f8f9fa;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #495057;
}

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

/* Badges */
.badge {
  padding: 0.4em 0.8em;
  font-weight: 500;
  font-size: 0.85rem;
}

/* Buttons */
.btn {
  padding: 0.5rem 1.2rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
}

/* Forms */
.form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border-radius: 6px;
  border: 1px solid #ced4da;
  padding: 0.6rem 0.75rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.required-field::after {
  content: " *";
  color: #dc3545;
}

/* Cards */
.card {
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  padding: 1rem 1.5rem;
  border-radius: 10px 10px 0 0 !important;
}

/* Navbar */
.navbar {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.3rem;
}

/* Footer */
.footer {
  margin-top: auto;
  background-color: #f8f9fa;
}

/* Responsive */
@media (max-width: 768px) {
  .login-card {
    margin: 1rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .dashboard-card {
    margin-bottom: 1rem;
  }
}

/* Survey Form */
.survey-question {
  padding: 1.5rem;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  background-color: white;
}

.question-number {
  display: inline-block;
  width: 30px;
  height: 30px;
  background-color: #667eea;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  font-weight: 600;
  margin-right: 10px;
}

/* Status badges */
.status-active {
  background-color: #198754;
}
.status-inactive {
  background-color: #6c757d;
}
.status-suspended {
  background-color: #dc3545;
}
.status-draft {
  background-color: #6c757d;
}
.status-submitted {
  background-color: #0dcaf0;
}
.status-approved {
  background-color: #198754;
}
.status-rejected {
  background-color: #dc3545;
}

/* Loading spinner */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Breadcrumb */
.breadcrumb {
  background-color: transparent;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
}

/* Select2 custom styling */
.select2-container--bootstrap-5 .select2-selection {
  border-radius: 6px;
}

/* Page header */
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e9ecef;
}

.page-header h1 {
  font-weight: 700;
  color: #495057;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: #6c757d;
  margin-bottom: 0;
}
