/* Modern theme overrides for School Management plugin
   Author: Custom
*/
:root {
  --wlsm-primary: #0069ff;
  --wlsm-secondary: #6c757d;
  --wlsm-success: #28a745;
  --wlsm-danger: #dc3545;
  --wlsm-warning: #ffc107;
  --wlsm-light: #f8f9fa;
  --wlsm-dark: #343a40;
  --wlsm-border-radius: .5rem;
  --wlsm-font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--wlsm-font-family);
  background-color: #f5f7fb;
  color: #212529;
}

/* Card style */
.wlsm-card {
  background: #ffffff;
  border-radius: var(--wlsm-border-radius);
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.wlsm-btn-primary {
  background: var(--wlsm-primary);
  border: none;
  color: #fff;
  border-radius: var(--wlsm-border-radius);
  padding: .5rem 1rem;
}

.wlsm-btn-primary:hover {
  background: #0056d6;
  color: #fff;
}

/* Override Bootstrap primary utilities */
.bg-primary{
  background-color: var(--wlsm-primary) !important;
}
.text-primary{
  color: var(--wlsm-primary) !important;
}
.btn-primary,
.btn-primary:hover,
.btn-primary:focus{
  background-color: var(--wlsm-primary) !important;
  border-color: var(--wlsm-primary) !important;
}

/* Responsive table */
.table-responsive {
  overflow-x: auto;
}

/* Form improvements */
.wlsm-form-control {
  border-radius: var(--wlsm-border-radius);
  border: 1px solid #ced4da;
  padding: .5rem .75rem;
}

.wlsm-form-group label {
  font-weight: 600;
  margin-bottom: .25rem;
}

/* Dashboard header */
.wlsm-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.wlsm-stat-box {
  flex: 1 1 200px;
  background: var(--wlsm-primary);
  color: #fff;
  border-radius: var(--wlsm-border-radius);
  padding: 1rem;
  margin: .5rem;
  text-align: center;
}

.wlsm-stat-box h3 {
  font-size: 2rem;
  margin: 0;
}

.wlsm-stat-box span {
  font-size: .9rem;
  opacity: .85;
} 

/* Stats block modernisation */
.wlsm-stats-block {
  background: #fff;
  border-radius: var(--wlsm-border-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  text-align: center;
  padding: 1.25rem .75rem;
  margin-bottom: 1rem;
  position: relative;
  border-top: 4px solid var(--wlsm-primary);
}

.wlsm-stats-block .wlsm-stats-icon {
  font-size: 1.5rem;
  color: var(--wlsm-primary);
  margin-bottom: .5rem;
}
.wlsm-stats-counter {
  font-size: 1.75rem;
  font-weight: 700;
}
.wlsm-stats-label {
  font-size: .9rem;
  opacity: .8;
}

/* Tables */
.wlsm-stats-table,
.table {
  background: #fff;
  border-radius: var(--wlsm-border-radius);
  overflow: hidden;
}
.wlsm-stats-table thead,
.table thead {
  background: var(--wlsm-primary);
  color: #fff;
}

.table-responsive {
  border-radius: var(--wlsm-border-radius);
} 

/* Multi-color accent for consecutive stats blocks */
.wlsm-stats-block:nth-child(4n+2) {
  border-top-color: var(--wlsm-success);
}
.wlsm-stats-block:nth-child(4n+3) {
  border-top-color: var(--wlsm-warning);
}
.wlsm-stats-block:nth-child(4n) {
  border-top-color: var(--wlsm-danger);
}

.wlsm-stats-block:nth-child(4n+2) .wlsm-stats-icon { color: var(--wlsm-success); }
.wlsm-stats-block:nth-child(4n+3) .wlsm-stats-icon { color: var(--wlsm-warning); }
.wlsm-stats-block:nth-child(4n)   .wlsm-stats-icon { color: var(--wlsm-danger); } 

/* Form improvements */
.form-control {
  border-radius: var(--wlsm-border-radius);
  border: 1px solid #dee2e6;
}

.form-control:focus {
  border-color: var(--wlsm-primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 105, 255, 0.25);
}

/* Additional card hover effects for other elements */
.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
} 