/* =======================
   Light & Dark Mode Variables
   ======================= */
html:not(.dark) {
  --bg-primary: #f3f4f6;
  --bg-card: #ffffff;
  --bg-hover: #ffffff; 
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --accent-blue: #0d65a4ff; 
  --accent-blue-dark: #0d65a4ff;
  --accent-blue-light: #0d65a4ff;
}

html.dark {
  --bg-primary: #111827;
  --bg-card: #1f2937;
  --bg-hover: #0d65a4ff; 
  --text-primary: #e5e7eb;
  --text-secondary: #9ca3af;
  --accent-blue: #0d65a4ff;
  --accent-blue-dark: #0d65a4ff;
  --accent-blue-light: #0d65a4ff;
}

/* =======================
   Base
   ======================= */
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3, h4 {
  color: var(--text-primary);
}

h1::after, h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent-blue);
  margin: 6px auto 0; /* top 6px, left/right auto, bottom 0 */
  border-radius: 2px;
}

/* =======================
   Cards / Containers
   ======================= */
.bg-gray-800,
.bg-gray-900,
.bg-gray-700 {
  background-color: var(--bg-card) !important;
}

.bg-gray-800:hover,
.bg-gray-900:hover,
.bg-gray-700:hover {
  background-color: var(--bg-card) !important;
}

.text-gray-200,
.text-gray-300,
.text-gray-400 {
  color: var(--text-secondary) !important;
}

.text-white {
  color: var(--text-primary) !important;
}

/* =======================
   Buttons
   ======================= */
button, .btn {
  padding: 0.75rem 1.25rem;
  background-color: var(--accent-blue);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

button:hover, .btn:hover {
  background-color: var(--accent-blue-dark);
  transform: translateY(-2px);
}

button:disabled, .btn:disabled {
  background-color: var(--text-secondary);
  cursor: not-allowed;
  opacity: 0.7;
}

/* =======================
   Links
   ======================= */
a {
  color: var(--accent-blue);
  transition: color 0.2s;
}
a:hover {
  color: var(--accent-blue-dark);
}

/* =======================
   Inputs, Selects, Textareas
   ======================= */
input,
textarea,
select {
  padding: 0.75rem;
  border: 2px solid var(--text-secondary);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  background-color: var(--bg-card);
  color: var(--text-primary);
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px var(--accent-blue-light);
  background-color: var(--bg-hover);
}

/* =======================
   FullCalendar
   ======================= */
#calendar,
.fc .fc-scrollgrid,
.fc-timegrid,
.fc-timegrid-slots,
.fc-timegrid-axis {
  background-color: var(--bg-card) !important;
  border: none !important;
}

.fc-col-header {
  background-color: var(--bg-card) !important;
  color: var(--text-primary) !important;
  font-weight: 600;
}

.fc-toolbar-title {
  color: var(--text-primary) !important;
}

.fc-button {
  background-color: var(--accent-blue) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 0.5rem !important;
  transition: background 0.3s, transform 0.2s;
}
.fc-button:hover {
  background-color: var(--accent-blue-dark) !important;
  transform: translateY(-1px);
}

.fc-event {
  border: none !important;
  border-radius: 6px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  color: #fff !important;
}

.fc-event.lesson-scheduled {
  background-color: var(--accent-blue) !important;
}

/* =======================
   Tables
   ======================= */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-card);

}

thead {
  background-color: var(--bg-card);
  font-weight: 600;
}

th, td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--text-secondary);
}

tbody tr:last-child td {
  border-bottom: none;
}


/* =======================
   Cards / Tiles Hover
   ======================= */
.tile, .card, section, #tab-addresses a {
  background-color: var(--bg-card) !important;
  color: var(--text-primary);
  border-radius: 0.75rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tile:hover, .card:hover, section a:hover, #tab-addresses a:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
  border: 1px solid var(--accent-blue);
  background-color: var(--bg-card) !important;
}

/* Student cards hover effect with blue border */
.student-card > div {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 2px solid transparent; /* default no border */
}

.student-card > div:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  border-color: var(--accent-blue); /* blue border on hover */
}


/* Table row hover effect with subtle blue */
table tbody tr {
  transition: background-color 0.3s ease;
}

table tbody tr:hover {
  background-color: rgba(16, 185, 129, 0.1) !important; /* subtle blue */
}

.fixed-mockup-size {
  width: 700px;      /* same width for both */
  height: 700px;     /* same height for both */
  overflow: hidden;
  border-radius: 0;   /* remove rounded corners */
  box-shadow: none !important;   /* remove shadow */
}

.fixed-mockup-size img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* or 'contain' to preserve full image */
  display: block;
}

.text-blue-400,
.text-blue-600,
.text-blue-800 {
  color: #0d65a4ff !important;
}

.bg-blue-400,
.bg-blue-600,
.bg-blue-800 {
  background-color: #0d65a4ff !important;
}

.border-blue-400,
.border-blue-600,
.border-blue-800 {
  border-color: #0d65a4ff !important;
}

.ring-blue-400,
.ring-blue-600,
.ring-blue-800 {
  --tw-ring-color: #0d65a4ff !important;
}

.fill-blue-400,
.fill-blue-600,
.fill-blue-800 {
  fill: #0d65a4ff !important;
}

.stroke-blue-400,
.stroke-blue-600,
.stroke-blue-800 {
  stroke: #0d65a4ff !important;
}

/* Hover & focus variants */
.hover\:bg-blue-400:hover,
.hover\:bg-blue-600:hover,
.hover\:bg-blue-800:hover,
.focus\:bg-blue-400:focus,
.focus\:bg-blue-600:focus,
.focus\:bg-blue-800:focus {
  background-color: #0d65a4ff !important;
}

.hover\:text-blue-400:hover,
.hover\:text-blue-600:hover,
.hover\:text-blue-800:hover,
.focus\:text-blue-400:focus,
.focus\:text-blue-600:focus,
.focus\:text-blue-800:focus {
  color: #0d65a4ff !important;
}

.hover\:border-blue-400:hover,
.hover\:border-blue-600:hover,
.hover\:border-blue-800:hover,
.focus\:border-blue-400:focus,
.focus\:border-blue-600:focus,
.focus\:border-blue-800:focus {
  border-color: #0d65a4ff !important;
}

.fc-col-header-cell-cushion {
  color: var(--text-primary);
}
