/* Custom CSS for SMAN 7 Yogyakarta */
:root {
  --primary-color: #0F52BA;
  --deep-navy: #123458;
  --gold-yellow: #ffc107;
  --bg-white: #ffffff;
  --bg-soft-gray: #f8f9fa;
  --light-blue-accent: #e3f2fd;
}

body {
  background-color: var(--bg-soft-gray);
  font-family: "Inter", "Roboto", sans-serif;
  color: #333;
  overflow-x: hidden;
}

/* Glassmorphism Card */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(18, 52, 88, 0.1);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

/* Gradients */
.bg-gradient-primary {
  background: linear-gradient(
    135deg,
    var(--deep-navy) 0%,
    var(--primary-color) 100%
  );
  color: white;
}

.text-primary-custom {
  color: var(--primary-color) !important;
}

/* Smooth Animation */
.smooth-hover {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.smooth-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(15, 76, 129, 0.2);
}

/* Custom Button */
.btn-gold {
  background-color: var(--gold-yellow);
  color: var(--deep-navy);
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  transition: all 0.3s ease;
}
.btn-gold:hover {
  background-color: #e6ae06;
  color: var(--deep-navy);
  transform: translateY(-2px);
}
.btn-navy {
  background-color: var(--deep-navy);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  transition: all 0.3s ease;
}
.btn-navy:hover {
  background-color: #0c2642;
  color: white;
  transform: translateY(-2px);
}

/* Form Styling */
.form-control,
.form-select {
  border-radius: 8px;
  border: 1px solid #ced4da;
  padding: 12px 16px;
  transition: all 0.3s ease;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(15, 76, 129, 0.25);
}

/* Glass Input */
.glass-input {
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  color: var(--deep-navy) !important;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}
.glass-input:focus {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 15px rgba(15, 82, 186, 0.2) !important;
}

/* Floating label override */
.form-floating > .form-control,
.form-floating > .form-select {
  height: calc(3.5rem + 2px);
  line-height: 1.25;
}

/* Layout Utilities */
.sidebar {
  background: linear-gradient(
    180deg,
    var(--deep-navy) 0%,
    var(--primary-color) 100%
  );
  min-height: 100vh;
  color: white;
}
.sidebar .brand-title {
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold-yellow);
}
.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  border-radius: 8px;
  margin-bottom: 5px;
  padding: 12px 20px;
  font-weight: 500;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--gold-yellow);
}
.sidebar .nav-link i {
  margin-right: 10px;
}

/* Base Top Navbar */
.top-navbar {
  background-color: var(--bg-white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 15px 30px;
}

/* Main Content Area */
.main-content {
  min-height: 100vh;
  background-color: var(--bg-soft-gray);
  padding: 30px;
}

/* Loader */
#global-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
}
.loader-spinner {
  width: 3rem;
  height: 3rem;
  color: var(--primary-color);
}

/* Hero Section Base */
.hero-section {
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--primary-color) 100%);
    color: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(18, 52, 88, 0.15);
    margin-bottom: 2rem;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,193,7,0.15) 0%, transparent 70%);
    transform: rotate(30deg);
}
.hero-section .hero-icon {
    font-size: 8rem;
    color: var(--gold-yellow);
    opacity: 0.15;
    position: absolute;
    right: 3%;
    top: 50%;
    transform: translateY(-50%);
}

/* Colorful soft cards */
.card-soft-blue {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #90caf9 !important;
    color: #0d47a1;
}
.card-soft-green {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 1px solid #a5d6a7 !important;
    color: #1b5e20;
}
.card-soft-yellow {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border: 1px solid #ffe082 !important;
    color: #a46d00;
}
.card-soft-red {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border: 1px solid #ef9a9a !important;
    color: #b71c1c;
}

.colorful-card {
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}
.colorful-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
}
.colorful-card .card-icon-bg {
    position: absolute;
    right: -10px;
    bottom: -15px;
    font-size: 5rem;
    opacity: 0.1;
    transform: rotate(-15deg);
}
.colorful-card h2, .colorful-card h6, .colorful-card i:not(.card-icon-bg) {
    position: relative;
    z-index: 2;
}
.colorful-card h2, .colorful-card i:not(.card-icon-bg) {
    text-shadow: 1px 1px 2px rgba(255,255,255,0.4);
}

/* Admin Hero UI */
.admin-hero {
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--primary-color) 100%);
    color: white;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
    margin: 1.5rem 1rem 2rem 1rem;
    box-shadow: 0 10px 25px rgba(15, 82, 186, 0.2);
}
.admin-hero .hero-decoration {
    opacity: 0.1;
    transform: rotate(-15deg);
    transition: transform 0.5s ease;
}
.admin-hero:hover .hero-decoration {
    transform: rotate(0deg) scale(1.1);
}

/* Pill Pagination */
.pagination-custom .page-link {
    border-radius: 50px;
    margin: 0 4px;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.pagination-custom .page-item.active .page-link {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 8px rgba(15, 82, 186, 0.3);
}
.pagination-custom .page-item.disabled .page-link {
    background-color: #f8f9fa;
    color: #6c757d;
}
