/* === VARIABEL WARNA & DESAIN === */
/* === FILE: CSS/style.css === */

:root {
  --primary-color: #0e9455;
  --primary-dark: #0b7342;
  --secondary-color: #f8bf16;
  --accent-color: #a187b6;
  --text-color: #363636;
  --text-light: #6b7280;
  --bg-light: #f8f6f0;
  --bg-grey: #f0f2f5;
  --white: #ffffff;
  --border-color: #dcdcdc;
  --border-light: #e5e7eb;
  --sidebar-width: 260px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET & BASE === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background: linear-gradient(180deg, #f5f9ff, #e9f3ff);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
}

body.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* === PENDIDIK PAGE === */
.pendidik-header {
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.pendidik-title {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.pendidik-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 24px;
  max-width: 1300px;
  margin: 0 auto;
}

.pendidik-grid .pendidik-card {
  max-width: none;
}

.pendidik-card {
  background: var(--white);
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  transition: var(--transition);
}

.pendidik-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.pendidik-image-wrapper {
  position: relative;
  padding-top: 70%;
  overflow: hidden;
}

.pendidik-organigram {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  transition: transform 0.5s ease;
}

.pendidik-card:hover .pendidik-organigram {
  transform: scale(1.05);
}

.pendidik-card-body {
  padding: 16px 20px 20px;
}

.pendidik-empty {
  padding: 3rem 1rem;
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  background: var(--white);
}

.pendidik-empty i {
  font-size: 3rem;
  color: var(--border-color);
  display: block;
  margin-bottom: 0.75rem;
}

@media (max-width: 1100px){
  .pendidik-grid{
    grid-template-columns: 1fr;
  }
}


/* === NAVBAR (USER INTERFACE) === */
.navbar {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
  box-shadow: var(--shadow-md);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-brand {
  font-size: 1.5rem !important;
  font-weight: 700;
  color: var(--white) !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand:hover {
  opacity: 0.9;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  margin: 0 8px;
  transition: var(--transition);
  border-radius: 6px;
  padding: 8px 12px !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--white) !important;
  background: rgba(255, 255, 255, 0.15);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25) !important;
}

/* === SIDEBAR (ADMIN INTERFACE) === */
.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #0d6efd 0%, #0a58ca 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  overflow-y: auto;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.sidebar .profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar .profile img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.sidebar .profile-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
  word-break: break-word;
}

.sidebar .profile-info p {
  font-size: 0.75rem;
  opacity: 0.8;
}

.sidebar .menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.sidebar .menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar .menu a i {
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar .menu a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  transform: translateX(4px);
}

.sidebar .menu a.active {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
  font-weight: 600;
}

.sidebar-close {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  z-index: 10;
  border-radius: 6px;
  transition: var(--transition);
}

.sidebar-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* === OVERLAY (MOBILE) === */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 900;
  cursor: pointer;
}

.overlay.active {
  display: block;
}

/* === CONTENT AREA === */
.content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 24px;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: calc(100% - var(--sidebar-width)); /* ← kunci */
  overflow-x: hidden;
  box-sizing: border-box;
}


.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  background: var(--white);
  padding: 20px 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 16px;
}

.topbar h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-color);
}

.topbar p {
  color: var(--text-light);
  margin: 0;
}

.menu-toggle {
  font-size: 24px;
  cursor: pointer;
  display: none;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  transition: var(--transition);
}

.menu-toggle:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* === CARD === */
.card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
}

.card h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--text-color);
  font-weight: 700;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--text-color);
  font-weight: 600;
}

/* === DASHBOARD STATS === */
.dashboard-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.card-stat {
  background: linear-gradient(135deg, #0fb5ad, #06a39a);
  color: var(--white);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  min-height: 130px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-stat:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-stat.bg-foto {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.card-stat.bg-video {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

.card-stat.bg-guru {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.card-stat h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--white);
}

.card-stat p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0;
  font-weight: 500;
}

.card-stat .icon {
  font-size: 48px;
  opacity: 0.8;
}

/* === GRID LAYOUT === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* 🔽 dulu 280px */
  gap: 16px;
}

.photo-card,
.teacher-card,
.facility-card,
.eskul-card,
.video-card {
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.1s ease;
  width: 100%;
}

.photo-card:hover,
.teacher-card:hover,
.facility-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.photo-card img,
.teacher-card img,
.facility-card img,
.eskul-card img,
.video-card img {
  width: 100%;
  height: 180px;     
  object-fit: cover;
}

.photo-card .body,
.teacher-card .body,
.facility-card .body,
.eskul-card .body,
.video-card .body {
  padding: 14px;     
}

.photo-card h5,
.teacher-card h5,
.facility-card h5 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-color);
  font-weight: 600;
}

.photo-card p,
.teacher-card p,
.facility-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 12px;
  flex: 1;
  line-height: 1.5;
}

.photo-card .actions,
.teacher-card .actions,
.facility-card .actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

/* === MODAL === */
.modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  padding: 16px;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.modal-bg.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal {
  background: var(--white);
  border-radius: 12px;
  width: 100%;
  max-width: 550px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--text-color);
  font-weight: 700;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-color);
}

/* === FORM CONTROL === */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text-color);
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  margin-bottom: 0;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
  color: var(--text-color);
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(14, 148, 85, 0.1);
  background: var(--white);
}

input[type="file"] {
  padding: 10px;
  cursor: pointer;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23363636' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 36px;
}

/* === BUTTONS === */
.btn {
  background: #0d6efd;
  color: var(--white);
  padding: 11px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
}

.btn:hover {
  background: #0b5ed7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--primary-color);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(14, 148, 85, 0.3);
}

.btn-success {
  background: #10b981;
}

.btn-success:hover {
  background: #059669;
}

.btn-danger {
  background: #ef4444;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-warning {
  background: #f59e0b;
  color: var(--white);
}

.btn-warning:hover {
  background: #d97706;
}

.btn-info {
  background: #3b82f6;
}

.btn-info:hover {
  background: #2563eb;
}

.btn-secondary {
  background: #6b7280;
}

.btn-secondary:hover {
  background: #4b5563;
}

.btn-sm {
  padding: 8px 12px;
  font-size: 0.85rem;
  min-height: auto;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* === TABLE === */
.table-container {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

table thead {
  background: #f3f4f6;
  border-bottom: 2px solid var(--border-light);
}

table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--text-color);
  font-size: 0.95rem;
}

table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
  color: var(--text-color);
}

table tbody tr:hover {
  background: #f9fafb;
}

table tbody tr:last-child td {
  border-bottom: none;
}

/* === HERO SECTION === */
.hero {
  position: relative;
  height: 500px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  overflow: hidden;
  margin-bottom: 40px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 20px;
  animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 24px;
  opacity: 0.95;
  line-height: 1.6;
}

/* === ALERT MESSAGES === */
.alert {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border-color: #10b981;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border-color: #ef4444;
}

.alert-warning {
  background: #fef3c7;
  color: #92400e;
  border-color: #f59e0b;
}

.alert-info {
  background: #dbeafe;
  color: #1e40af;
  border-color: #3b82f6;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1200px) {
  .dashboard-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 992px) {
  .content {
    margin-left: 0;
    padding: 16px;
    width: 100%;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .sidebar-close {
    display: block;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .topbar {
    padding: 16px 20px;
  }

  .topbar h1 {
    font-size: 1.5rem;
  }

  .dashboard-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }

  .card-stat {
    padding: 20px;
    min-height: 110px;
  }

  .card-stat h2 {
    font-size: 2rem;
  }

  .card-stat .icon {
    font-size: 40px;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }

  .hero {
    height: 400px;
    margin-bottom: 32px;
  }

  .hero h2 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .card {
    padding: 16px;
  }

  .card h2 {
    font-size: 1.3rem;
  }

  .card h3 {
    font-size: 1.1rem;
  }

  .photo-card img,
  .teacher-card img,
  .facility-card img {
    height: 180px;
  }

  .card-stat h2 {
    font-size: 1.8rem;
  }

  .card-stat .icon {
    font-size: 36px;
  }

  .card-stat {
    padding: 16px;
  }

  table {
    font-size: 0.85rem;
  }

  table th,
  table td {
    padding: 10px 12px;
  }

  .modal {
    padding: 20px;
    max-width: 100%;
  }

  .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
    min-height: 40px;
  }

  .btn-sm {
    padding: 6px 10px;
    font-size: 0.8rem;
    min-height: auto;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-nav {
    padding-top: 12px;
  }

  .navbar-nav .nav-link {
    padding: 10px 0 !important;
  }

  .hero {
    height: 300px;
    margin-bottom: 24px;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  .content {
    padding: 12px;
  }

  .sidebar {
    width: 280px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .dashboard-container {
    grid-template-columns: 1fr;
  }

  .card-stat {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .card-stat h2 {
    font-size: 2rem;
  }

  .card-stat .icon {
    font-size: 44px;
  }

  .photo-card img,
  .teacher-card img,
  .facility-card img {
    height: 150px;
  }

  .topbar {
    gap: 12px;
  }

  .topbar h1 {
    font-size: 1.3rem;
  }

  .card {
    padding: 14px;
  }

  .card h2 {
    font-size: 1.2rem;
    margin-bottom: 16px;
  }

  .card h3 {
    font-size: 1rem;
  }

  .btn {
    padding: 10px 14px;
    font-size: 0.85rem;
    min-height: 38px;
  }

  .btn-sm {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .modal {
    padding: 16px;
  }

  .modal h3 {
    font-size: 1.3rem;
  }

  .form-control,
  input,
  textarea,
  select {
    font-size: 16px;
  }

  .hero {
    height: 250px;
    margin-bottom: 20px;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  table {
    font-size: 0.8rem;
  }

  table th,
  table td {
    padding: 8px;
  }
}

@media (max-width: 400px) {
  .sidebar {
    width: 100%;
  }

  .card-stat {
    padding: 12px;
  }

  .card-stat h2 {
    font-size: 1.6rem;
  }

  .card-stat .icon {
    font-size: 36px;
  }

  .photo-card img,
  .teacher-card img,
  .facility-card img {
    height: 120px;
  }

  .hero h2 {
    font-size: 1.2rem;
  }

  .hero p {
    font-size: 0.85rem;
  }

  .btn {
    width: 100%;
  }

  .topbar h1 {
    font-size: 1.1rem;
  }

  .card h2 {
    font-size: 1.1rem;
  }

  .modal {
    padding: 12px;
  }

  .modal h3 {
    font-size: 1.1rem;
  }
}

/* === UTILITY CLASSES === */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: var(--text-light);
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 12px; }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.hidden { display: none; }
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* === ADMIN SESSION STYLES === */
.admin-page .alert {
  padding: 14px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-page .alert-success {
  background: #d1e7dd;
  color: #0f5132;
  border-left: 4px solid #198754;
}

.admin-page .alert-danger {
  background: #f8d7da;
  color: #842029;
  border-left: 4px solid #dc3545;
}

.admin-page .photo-card {
  position: relative;
}

.admin-page .photo-card h5 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-weight: 600;
}

.admin-page .photo-card img {
  cursor: pointer;
  transition: transform 0.3s;
}

.admin-page .photo-card:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .admin-page .photo-card img {
    height: 180px;
  }
  .admin-pendidik-page .photo-card img {
    height: 200px !important;
  }
  .admin-video-page .video-card img {
    height: 180px;
  }
}

@media (max-width: 600px) {
  .admin-page .photo-card img {
    height: 150px;
  }
  .admin-pendidik-page .photo-card img {
    height: 180px !important;
  }
  .admin-video-page .video-card img {
    height: 150px;
  }
}

.admin-video-page .video-card {
  position: relative;
}

.admin-video-page .video-card img {
  cursor: pointer;
  transition: transform 0.3s;
  border-radius: 8px;
}

.admin-video-page .video-card:hover img {
  transform: scale(1.03);
}

.admin-kontak-page .status-badge {
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.85em;
  font-weight: 600;
}

.admin-kontak-page .status-baru {
  background-color: #ffebee;
  color: #d32f2f;
}

.admin-kontak-page .status-dibalas {
  background-color: #e8f5e9;
  color: #388e3c;
}

.admin-kontak-page .table-wrapper {
  overflow-x: auto;
}

.admin-kontak-page table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.admin-kontak-page th,
.admin-kontak-page td {
  padding: 12px 15px;
  border: 1px solid #ddd;
  text-align: left;
  white-space: nowrap;
}

.admin-kontak-page th {
  background-color: #f4f4f4;
}

.admin-kontak-page tr:nth-child(even) {
  background-color: #f9f9f9;
}

.admin-kontak-page .btn-sm {
  padding: 5px 10px;
  font-size: 0.875rem;
  margin-right: 5px;
}

.admin-kontak-page .modal-detail-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 5px 10px;
}

.admin-kontak-page .modal-detail-grid strong {
  text-align: right;
}

.admin-kontak-page #modalPesanIsi {
  background: #f9f9f9;
  padding: 10px;
  border-left: 3px solid #ccc;
  margin-top: 5px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.admin-pesan-page .message-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  color: var(--gray);
}

.admin-pesan-page .message-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.admin-pesan-page .btn-whatsapp {
  background: #25d366;
  color: #fff;
  border: none;
}

.admin-pesan-page .btn-whatsapp:hover {
  background: #1ebe5d;
  color: #fff;
}

.login-page .password-group {
  position: relative;
  width: 100%;
}

.login-page .alert-box {
  background-color: #fee2e2;
  border: 1px solid #ef4444;
  color: #b91c1c;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-page .fade-in {
  animation: fadeIn 300ms ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-edit-profil * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.admin-edit-profil {
  font-family: "Poppins", "Segoe UI", Roboto, sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.7;
}

.admin-edit-profil .container {
  max-width: 900px;
  margin: 60px auto;
  background: #fff;
  padding: 40px 50px;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.admin-edit-profil h2 {
  font-weight: 700;
  color: #0d6efd;
  margin-bottom: 10px;
  position: relative;
}

.admin-edit-profil h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #0d6efd;
  margin-top: 6px;
  border-radius: 2px;
}

.admin-edit-profil p {
  font-size: 1rem;
  margin-bottom: 25px;
  text-align: justify;
}

@media (max-width: 768px) {
  .admin-edit-profil .container {
    padding: 25px 20px;
    margin: 30px 10px;
  }
  .admin-edit-profil h2 {
    font-size: 1.4rem;
  }
  .admin-edit-profil p {
    font-size: 0.95rem;
  }
}