/* Frontend Styles - Modern & Clean */
:root {
  --primary-color: #4361ee;
  --secondary-color: #3a0ca3;
  --accent-color: #f72585;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --success-color: #4cc9f0;
  --warning-color: #f8961e;
  --danger-color: #e63946;
  --gray-color: #6c757d;
  --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8fafc;
}

/* Navigation */
.navbar {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  padding: 0.8rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.5rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.navbar-brand img {
  height: 45px;
  background-color: transparent;
  transition: transform 0.3s ease;
}

.navbar-brand img:hover {
  transform: rotate(-5deg) scale(1.1);
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: white;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 3px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 70%;
}

/* Dropdown Menu */
.dropdown-menu {
  border: none;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  margin-top: 10px;
  padding: 0.5rem;
  min-width: 220px;
  animation: dropdownFade 0.3s ease;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin: 2px 0;
  transition: all 0.2s ease;
  font-weight: 500;
}

.dropdown-item:hover {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  transform: translateX(5px);
}

/* Card Styles */
.card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: white;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

.card-img-top {
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--gray-color);
  line-height: 1.7;
}

/* Stats Cards */
.stats-card {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-5px) scale(1.02);
}

.stats-card h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.stats-card p {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0;
}

/* Hero Section */
.hero-slide {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.hero-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 1;
}

.carousel-caption {
  z-index: 2;
  text-align: left;
  bottom: 20%;
  left: 10%;
  right: auto;
  width: 50%;
}

/* Scrolling Announcement */
.announcement-bar {
  background: linear-gradient(135deg, var(--accent-color) 0%, #7209b7 100%);
  padding: 0.8rem 0;
  color: white;
  overflow: hidden;
}

.scrolling-text-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.scrolling-text {
  white-space: nowrap;
  display: flex;
  gap: 3rem;
  animation: scrollText 30s linear infinite;
}

@keyframes scrollText {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Button Styles */
.btn {
  border-radius: 10px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  border-color: transparent;
  transform: translateY(-3px);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--gray-color);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Agenda & Pengumuman */
.list-group-item {
  border: none;
  border-radius: 12px !important;
  margin-bottom: 0.5rem;
  padding: 1.25rem;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.list-group-item:hover {
  background: rgba(67, 97, 238, 0.05);
  border-left: 4px solid var(--primary-color);
  transform: translateX(5px);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer h5 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-links a {
  color: #b8b8b8;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.social-icons {
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: white;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

/* Loading Animation */
.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(67, 97, 238, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Badges */
.badge {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
}

.badge-new {
  background: linear-gradient(135deg, var(--accent-color) 0%, #7209b7 100%);
  color: white;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .carousel-caption {
    width: 90%;
    left: 5%;
    bottom: 10%;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .stats-card {
    margin-bottom: 1rem;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    135deg,
    var(--secondary-color) 0%,
    var(--primary-color) 100%
  );
}

/* Gradient Background Classes */
.bg-gradient-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
}

.bg-gradient-success {
  background: linear-gradient(135deg, var(--success-color) 0%, #4895ef 100%);
}

.bg-gradient-warning {
  background: linear-gradient(135deg, var(--warning-color) 0%, #f3722c 100%);
}

.bg-gradient-info {
  background: linear-gradient(135deg, var(--success-color) 0%, #4895ef 100%);
}

.bg-gradient-secondary {
  background: linear-gradient(135deg, var(--gray-color) 0%, #6c757d 100%);
}

.bg-gradient-danger {
  background: linear-gradient(135deg, var(--danger-color) 0%, #d00000 100%);
}

/* Admin Styles - Updated */
.wrapper {
  display: flex;
  min-height: 100vh;
}

#sidebar {
  min-width: 280px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1000;
}

#sidebar.active {
  margin-left: -280px;
}

.sidebar-header {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
  font-weight: 700;
  margin: 0;
  font-size: 1.2rem;
}

.sidebar-menu {
  padding: 1rem 0;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  padding: 0.875rem 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  gap: 12px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: rgba(67, 97, 238, 0.2);
  color: white;
  border-left: 3px solid var(--primary-color);
}

.sidebar-menu i {
  font-size: 1.1rem;
  width: 24px;
}

.main-content {
  flex: 1;
  background: #f8fafc;
  min-height: 100vh;
}

.admin-navbar {
  background: white;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  padding: 1rem 1.5rem;
}

.content-area {
  padding: 2rem;
}

/* Tables */
.table-responsive {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
}

.table {
  margin-bottom: 0;
}

.table thead th {
  border: none;
  background: rgba(67, 97, 238, 0.05);
  color: var(--dark-color);
  font-weight: 600;
  padding: 1rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.table tbody td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table tbody tr:hover {
  background: rgba(67, 97, 238, 0.02);
}

/* Form Controls */
.form-control,
.form-select {
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.15);
}

/* Alerts */
.alert {
  border-radius: 12px;
  border: none;
  padding: 1.25rem;
}

.alert-success {
  background: linear-gradient(135deg, #4cc9f0 0%, #4895ef 100%);
  color: white;
}

.alert-warning {
  background: linear-gradient(135deg, #f8961e 0%, #f3722c 100%);
  color: white;
}

.alert-danger {
  background: linear-gradient(135deg, #e63946 0%, #d00000 100%);
  color: white;
}

/* Pagination */
.pagination {
  margin-top: 2rem;
}

.page-link {
  border: none;
  color: var(--dark-color);
  padding: 0.75rem 1.25rem;
  margin: 0 0.25rem;
  border-radius: 10px !important;
  transition: all 0.3s ease;
}

.page-link:hover {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
}

.page-item.active .page-link {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  border: none;
  color: white;
}

/* Modal */
.modal-content {
  border-radius: 20px;
  border: none;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  border: none;
  padding: 1.5rem;
}

.modal-title {
  font-weight: 700;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  border: none;
  padding: 1.5rem 2rem;
  background: #f8f9fa;
}

/* Charts */
.chart-container {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
}

/* Utility Classes */
.rounded-lg {
  border-radius: 16px;
}

.shadow-soft {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.hover-lift {
  transition: transform 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
}

.gradient-bg {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
}

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .no-print {
    display: none !important;
  }
}
