/* Main Styles for AlRiyada College Reports System */

/* Global Styles */
body {
  font-family: "Poppins", sans-serif;
  background-color: #f8f9fa;
}

/* Dashboard Cards */
.dashboard-card {
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.dashboard-card .card-header {
  background-color: #0a58ca;
  color: white;
  font-weight: 600;
  border-bottom: none;
}

.dashboard-card .card-body {
  padding: 1.5rem;
}

.dashboard-card .card-footer {
  background-color: rgba(0, 0, 0, 0.03);
  border-top: 1px solid rgba(0, 0, 0, 0.125);
  padding: 0.75rem 1.25rem;
}

/* Stats Cards */
.stats-card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.stats-card .card-body {
  padding: 1.5rem;
}

.stats-card .stats-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.stats-card .stats-number {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stats-card .stats-title {
  color: #6c757d;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Department Cards */
.department-card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.department-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.department-card .card-header {
  border-bottom: none;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.department-card .card-body {
  padding: 1.5rem;
}

/* Forms */
.form-control {
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid #ced4da;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: #1a237e;
  box-shadow: 0 0 0 0.25rem rgba(26, 35, 126, 0.25);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
  border-radius: 0.5rem;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #0a58ca;
  border-color: #0a58ca;
}

.btn-primary:hover {
  background-color: #0842a0;
  border-color: #0842a0;
}

.btn-outline-primary {
  color: #0a58ca;
  border-color: #0a58ca;
}

.btn-outline-primary:hover {
  background-color: #0a58ca;
  color: white;
}

/* Tables */
.table {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.table thead th {
  background-color: #0a58ca;
  color: white;
  font-weight: 500;
  border-bottom: none;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
  background-color: rgba(26, 35, 126, 0.05);
}

/* Pagination */
.pagination .page-item .page-link {
  color: #0a58ca;
  border: 1px solid #dee2e6;
  margin: 0 3px;
  border-radius: 5px;
}

.pagination .page-item.active .page-link {
  background-color: #0a58ca;
  border-color: #0a58ca;
}

/* Alerts */
.alert {
  border-radius: 10px;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
}

/* Badges */
.badge {
  padding: 0.5em 0.75em;
  font-weight: 500;
  border-radius: 5px;
}

/* Progress Bars */
.progress {
  height: 10px;
  border-radius: 5px;
  background-color: #e9ecef;
  margin-bottom: 1rem;
}

.progress-bar {
  background-color: #0a58ca;
}

/* Report Status Indicators */
.status-indicator {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}

.status-pending {
  background-color: #ffc107;
}

.status-approved {
  background-color: #28a745;
}

.status-rejected {
  background-color: #dc3545;
}

.status-draft {
  background-color: #6c757d;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }

  .print-only {
    display: block !important;
  }

  body {
    background-color: white;
  }

  .container {
    width: 100%;
    max-width: 100%;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .dashboard-card {
    margin-bottom: 1.5rem;
  }

  .stats-card {
    margin-bottom: 1.5rem;
  }
}
