/* Gilberto Music Academy & SHS - Professional Design System CSS */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-main: #090D1A;
  --bg-sidebar: #0E1326;
  --surface-panel: rgba(18, 25, 47, 0.65);
  --surface-panel-solid: #12192F;
  --border-glow: rgba(99, 102, 241, 0.15);
  --border-light: rgba(255, 255, 255, 0.07);
  
  --accent-indigo: #6366F1;
  --accent-violet: #8B5CF6;
  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;
  --accent-rose: #EF4444;

  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;

  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.25);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.5);
}

/* Common Classes */
.glass-panel {
  background: var(--surface-panel);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
}

/* Glowing Buttons */
.glow-button {
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.glow-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  filter: brightness(1.1);
}
.glow-button:active {
  transform: translateY(0);
}

/* Inputs & Forms */
input, select, textarea {
  transition: all 0.2s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent-indigo) !important;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
  background: rgba(255, 255, 255, 0.06) !important;
}

/* Animations */
.animate-fade {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- LOGIN SCREEN LAYOUT --- */
.login-wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background-color: var(--bg-main);
}

.login-image-side {
  background: linear-gradient(to top, rgba(9, 13, 26, 0.95) 10%, rgba(9, 13, 26, 0.35) 60%, rgba(9, 13, 26, 0.6) 100%), url('../images/school_courtyard.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px;
  position: relative;
  border-right: 1px solid var(--border-light);
}

.login-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background-image: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
  position: relative;
  overflow-y: auto;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-violet));
}

@media (max-width: 900px) {
  .login-wrapper {
    grid-template-columns: 1fr;
  }
  .login-image-side {
    display: none;
  }
}

/* --- MAIN APP SHELL LAYOUT --- */
.app-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* Sidebar Styling */
.sidebar {
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 16px;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding: 0 8px;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.2s ease;
  cursor: pointer;
}
.sidebar-nav-item svg {
  stroke: var(--text-secondary);
  transition: all 0.2s ease;
}
.sidebar-nav-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}
.sidebar-nav-item.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet));
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.sidebar-nav-item.active svg {
  stroke: #ffffff;
}

/* Main Area Layout */
.main-wrapper {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header Component */
.header-bar {
  height: 70px;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-light);
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.header-clock-box {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  border-radius: 20px;
}

.header-profile-box {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Content Container */
.content-scroller {
  flex-grow: 1;
  overflow-y: auto;
  padding: 32px;
  background-color: var(--bg-main);
}

/* Tables & Lists */
.dashboard-table {
  width: 100%;
  border-collapse: collapse;
}
.dashboard-table th {
  font-weight: 600;
  color: var(--text-secondary);
}
.dashboard-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s ease;
}
.dashboard-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Dynamic styling for table items on hover */
[hover-bg]:hover {
  background: rgba(255, 255, 255, 0.02) !important;
}
[hover-border]:hover {
  border-color: rgba(99, 102, 241, 0.4) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Custom styles for modals content */
.modal-card input, .modal-card select {
  font-size: 14px;
}

/* Print specific styles for printing report cards */
@media print {
  body * {
    visibility: hidden;
  }
  #printable-report-card, #printable-report-card * {
    visibility: visible;
  }
  #printable-report-card {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: none !important;
    padding: 0 !important;
    background: white !important;
    color: black !important;
  }
}
