@import url("https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700&display=swap");

:root {
  --primary-color: #88c9d1;
  --secondary-color: #f9d5e5;
  --success-color: #a8e6cf;
  --warning-color: #ffd3b6;
  --danger-color: #ffb6b9;
  --light-color: #f8f9fa;
  --dark-color: #495057;
}

body {
  font-family: "Sarabun", sans-serif;
  background-color: #f0f7f9;
  font-size: 18px;
}

* {
  font-family: "Sarabun", sans-serif;
}

html {
  font-size: 18px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

.btn {
  font-size: 16px;
}

.table {
  font-size: 16px;
}

.form-label {
  font-size: 16px;
  font-weight: 500;
}

.form-control,
.form-select {
  font-size: 16px;
}

/* Navbar styling */
.navbar {
  background-color: var(--primary-color) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-dark .navbar-brand,
.navbar-dark .nav-link {
  color: #2c3e50 !important;
}

.navbar-dark .nav-link:hover {
  color: #34495e !important;
}

/* Card styling */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  background-color: white;
  margin-bottom: 20px;
}

.card-header {
  background-color: var(--secondary-color);
  border-radius: 15px 15px 0 0 !important;
  border-bottom: none;
  padding: 15px 20px;
}

.card-header h4,
.card-header h5 {
  color: #2c3e50;
  margin: 0;
}

/* Button styling */
.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #2c3e50 !important;
}

.btn-primary:hover {
  background-color: #78b9c1 !important;
  border-color: #78b9c1 !important;
}

.btn-danger {
  background-color: var(--danger-color) !important;
  border-color: var(--danger-color) !important;
  color: #2c3e50 !important;
}

.btn-danger:hover {
  background-color: #ff9da0 !important;
  border-color: #ff9da0 !important;
}

/* Form control styling */
.form-control {
  border-radius: 8px;
  border: 1px solid #e1e8ed;
  padding: 8px 12px;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(136, 201, 209, 0.25);
}

/* Table styling */
.table {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
}

.table thead th {
  background-color: var(--secondary-color);
  color: #2c3e50;
  border-bottom: none;
}

/* Grade level table styling */
.table-sm th {
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.table-sm td {
  font-size: 0.85rem;
  text-align: center;
}

/* Chart containers */
canvas {
  max-height: 400px;
}

/* Grade level headers */
.text-primary,
.text-success {
  font-weight: 600;
  margin-bottom: 10px;
  border-bottom: 2px solid;
  padding-bottom: 5px;
}

.table td,
.table th {
  padding: 12px;
  vertical-align: middle;
}

/* Badge styling */
.badge {
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: normal;
}

.bg-success {
  background-color: var(--success-color) !important;
  color: #2c3e50 !important;
}

.bg-danger {
  background-color: var(--danger-color) !important;
  color: #2c3e50 !important;
}

/* Modal styling */
.modal-content {
  border-radius: 15px;
  border: none;
}

.modal-header {
  background-color: var(--secondary-color);
  border-radius: 15px 15px 0 0;
  border-bottom: none;
}

.modal-title {
  color: #2c3e50;
}

/* Chart styling */
canvas {
  background-color: white;
  border-radius: 10px;
  padding: 10px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #78b9c1;
}

/* Footer Styling */
.site-footer {
  background: linear-gradient(135deg, #0066cc 0%, #004999 100%);
  color: #ffffff;
  padding: 40px 0 20px;
  margin-top: 60px;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.site-footer .footer-content {
  text-align: center;
}

.site-footer .footer-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.site-footer .footer-developer {
  font-size: 16px;
  margin-bottom: 15px;
  color: #e3f2fd;
  font-weight: 500;
}

.site-footer .footer-social {
  margin: 20px 0;
}

.site-footer .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  margin: 0 8px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #ffffff;
  font-size: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.site-footer .social-link:hover {
  background-color: rgba(255, 255, 255, 0.95);
  color: #0066cc;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.site-footer .footer-copyright {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
  color: #bbdefb;
}

@media print {
  .site-footer {
    display: none;
  }
}
