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

:root {
  --primary-color: #0b3c5d;
  --secondary-color: #328cc1;
  --accent-color: #00d2c4;
  --text-dark: #1d2731;
  --text-light: #f9f9f9;
  --bg-light: #eaf6ff;
  --card-bg: rgba(255, 255, 255, 0.9);
  --success-color: #2ec4b6;
  --warning-color: #ff9f1c;
  --danger-color: #e71d36;
  --info-color: #3182ce;
  --border-radius: 16px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(135deg, #eaf6ff 0%, #d2eeff 100%);
  background-attachment: fixed;
  color: var(--text-dark);
  min-height: 100vh;
  line-height: 1.6;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Glassmorphism Header */
header {
  background: rgba(11, 60, 93, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-light);
  padding: 20px 0;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

header .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

header h1 span {
  color: var(--accent-color);
}

header p.tagline {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.user-info {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.user-info .user-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.user-info .user-role {
  font-size: 0.8rem;
  opacity: 0.7;
  text-transform: capitalize;
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border-radius: 30px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(50, 140, 193, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(50, 140, 193, 0.5);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-color) 0%, #00bdae 100%);
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 210, 196, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 210, 196, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

.btn-danger {
  background: var(--danger-color);
  color: white;
}

.btn-danger:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.8rem;
}

/* Cards & Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow);
  padding: 25px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

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

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Badges */
.badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-block;
}

.badge-active {
  background: rgba(46, 196, 182, 0.15);
  color: var(--success-color);
  border: 1px solid rgba(46, 196, 182, 0.3);
}

.badge-inactive {
  background: rgba(231, 29, 54, 0.15);
  color: var(--danger-color);
  border: 1px solid rgba(231, 29, 54, 0.3);
}

/* Evaluation scale badges */
.badge-eval {
  font-weight: 700;
}
.eval-belum-bisa {
  background-color: rgba(231, 29, 54, 0.15);
  color: var(--danger-color);
}
.eval-mulai-berkembang {
  background-color: rgba(255, 159, 28, 0.15);
  color: var(--warning-color);
}
.eval-berkembang {
  background-color: rgba(49, 130, 206, 0.15);
  color: var(--info-color);
}
.eval-sangat-baik {
  background-color: rgba(46, 196, 182, 0.15);
  color: var(--success-color);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary-color);
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(11, 60, 93, 0.15);
  background: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(50, 140, 193, 0.15);
}

/* Huge Textarea */
textarea.notes-textarea {
  resize: vertical;
  min-height: 200px;
  line-height: 1.6;
}

/* Login/Landing Layout */
.auth-container {
  max-width: 450px;
  margin: 60px auto;
  padding: 0 15px;
}

.logo-display {
  text-align: center;
  margin-bottom: 30px;
}

.logo-display h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

.logo-display h2 span {
  color: var(--accent-color);
}

.logo-display p {
  color: var(--secondary-color);
  font-weight: 500;
}

.auth-tabs {
  display: flex;
  margin-bottom: 25px;
  background: rgba(255, 255, 255, 0.5);
  padding: 5px;
  border-radius: 30px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 25px;
  transition: var(--transition);
  user-select: none;
}

.auth-tab.active {
  background: var(--primary-color);
  color: white;
}

/* Dashboard Specifics */
.student-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a0c4ff 0%, #bdb2ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin-bottom: 15px;
  border: 3px solid white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  object-fit: cover;
}

.student-card-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.student-card-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
}

.student-card-info p {
  font-size: 0.9rem;
  color: #666;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 12px 0;
  font-size: 0.95rem;
}

.stat-label {
  color: #666;
}

.stat-value {
  font-weight: 600;
  color: var(--primary-color);
}

.latest-eval {
  background: rgba(50, 140, 193, 0.05);
  border-radius: 12px;
  padding: 15px;
  margin-top: 15px;
  border-left: 4px solid var(--secondary-color);
}

.latest-eval-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 5px;
}

/* Raport (Timeline) style */
.student-profile-bar {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 30px;
  background: var(--card-bg);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.timeline-item {
  position: relative;
  margin-bottom: 35px;
  padding-left: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  width: 4px;
  height: 100%;
  background: rgba(50, 140, 193, 0.2);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--secondary-color);
  border: 4px solid white;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  z-index: 2;
}

.timeline-content {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding-bottom: 12px;
  margin-bottom: 15px;
}

.timeline-meta {
  font-size: 0.85rem;
  color: #666;
}

.timeline-meta span {
  font-weight: 600;
  color: var(--primary-color);
}

.eval-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.eval-detail-box {
  background: rgba(0,0,0,0.02);
  padding: 10px 15px;
  border-radius: 8px;
}

.eval-detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #888;
  font-weight: 600;
}

.eval-detail-val {
  font-weight: 600;
  color: var(--primary-color);
}

.notes-box {
  background: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(240,248,255,0.7) 100%);
  border-left: 4px solid var(--accent-color);
  padding: 20px;
  border-radius: 8px;
  margin-top: 15px;
  white-space: pre-wrap; /* Penting agar spasi/baris baru di textarea terlukis dengan benar */
  font-size: 0.98rem;
  color: var(--text-dark);
}

/* Admin Dashboard layout */
.admin-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 30px;
}

@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
}

.search-box {
  margin-bottom: 20px;
}

.student-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 5px;
}

.student-list-item {
  background: rgba(255,255,255,0.6);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.student-list-item:hover,
.student-list-item.active {
  background: white;
  border-color: var(--secondary-color);
  box-shadow: 0 4px 12px rgba(50, 140, 193, 0.1);
  transform: translateX(3px);
}

.student-list-item.active {
  border-left: 4px solid var(--secondary-color);
}

.student-list-name {
  font-weight: 600;
  color: var(--primary-color);
}

.student-list-age {
  font-size: 0.8rem;
  color: #666;
}

/* Modals or forms containers */
.modal-form {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  font-weight: 500;
}

.alert-success {
  background: rgba(46, 196, 182, 0.15);
  color: #1b857c;
  border: 1px solid rgba(46, 196, 182, 0.3);
}

.alert-danger {
  background: rgba(231, 29, 54, 0.15);
  color: #b51224;
  border: 1px solid rgba(231, 29, 54, 0.3);
}

/* Loading animation spinner */
.spinner {
  border: 4px solid rgba(50, 140, 193, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: var(--secondary-color);
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.no-data {
  text-align: center;
  padding: 40px 20px;
  color: #777;
}

.no-data-icon {
  font-size: 3rem;
  color: rgba(50, 140, 193, 0.2);
  margin-bottom: 15px;
}

/* Landing specific styling */
.landing-hero {
  text-align: center;
  padding: 80px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.landing-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.2;
  margin-bottom: 20px;
}

.landing-hero h1 span {
  color: var(--accent-color);
  position: relative;
  display: inline-block;
}

.landing-hero h1 span::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(0, 210, 196, 0.3);
  z-index: -1;
  border-radius: 4px;
}

.landing-hero p.subtitle {
  font-size: 1.3rem;
  color: #555;
  margin-bottom: 40px;
}

.landing-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.feature-box {
  background: rgba(255, 255, 255, 0.7);
  padding: 30px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-align: center;
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.feature-box h3 {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 0.9rem;
  color: #666;
}

.footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--primary-color);
  opacity: 0.7;
  font-size: 0.9rem;
  margin-top: 50px;
}

/* Custom In-Page Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 60, 93, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

