/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #002147; /* Navy Blue */
  --accent-color: #f2b200; /* Gold */
  --text-color: #333333; /* Dark Gray */
  --light-bg: #f7f9fc; /* Light Background */
  --white: #ffffff;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #17a2b8;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* ===== TYPOGRAPHY ad fonts ===== */
body {
  font-family: "Inter", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-color);
  background-color: var(--light-bg);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: "Georgia", "Times New Roman", serif;
  font-weight: 700;
}

/* ===== NAVIGATION BAR ===== */
.navbar-custom {
  background-color: var(--white);
  box-shadow: var(--shadow);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-custom.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary-color) !important;
  font-size: 1.25rem;
}

.navbar-custom .nav-link {
  color: var(--text-color);
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.navbar-custom .nav-link:hover {
  color: var(--primary-color);
}

.btn-login {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(rgba(0, 33, 71, 0.85), rgba(0, 33, 71, 0.85)),
    url("resources/heroimage.jpg") center/cover;
  color: var(--white);
  padding: 120px 0 100px;
  text-align: center;
  position: relative;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-search {
  max-width: 600px;
  margin: 0 auto;
}

.hero-search input {
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  border: none;
  font-size: 1rem;
}

.hero-search .btn {
  border-radius: 50px;
  padding: 0.75rem 2rem;
  background-color: var(--accent-color);
  color: var(--primary-color);
  font-weight: 600;
  border: none;
}

.hero-search .btn:hover {
  background-color: #d9a000;
}

/* ===== CARDS ===== */
.card-custom {
  border: none;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  background-color: var(--white);
  height: 100%;
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
}

.card-custom:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
  z-index: 2;
}

.card-header-custom {
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 10px 10px 0 0 !important;
  padding: 1rem 1.25rem;
  font-weight: 600;
}

.metric-card {
  text-align: center;
  padding: 2rem 1rem;
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 1rem;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

/* ===== DATASET CARDS ===== */
.dataset-card {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.5rem;
  background-color: var(--white);
  transition: all 0.3s ease;
  height: 100%;
}

.dataset-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-color);
}

.dataset-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.dataset-description {
  font-size: 0.9rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.dataset-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
}

/* ===== BUTTONS ===== */
.btn-primary-custom {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  background-color: #003366;
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--primary-color);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-accent:hover {
  background-color: #d9a000;
  color: var(--primary-color);
}

.btn-outline-custom {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background-color: transparent;
  padding: 0.5rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-custom:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* ===== FOOTER ===== */
.footer-custom {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
  clear: both;
}

.footer-custom h5 {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-custom a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-custom a:hover {
  opacity: 1;
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

/* ===== SIDEBAR (DASHBOARD) ===== */
.sidebar {
  background-color: var(--primary-color);
  min-height: 100vh;
  padding: 0;
  position: fixed;
  left: 0;
  top: 0;
  width: 260px;
  z-index: 100;
  transition: all 0.3s ease;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 1.5rem 1rem;
  background-color: rgba(0, 0, 0, 0.2);
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
  text-align: center;
}

.sidebar-menu {
  list-style: none;
  padding: 1rem 0;
  margin: 0;
}

.sidebar-menu li {
  margin: 0;
}

.sidebar-menu a {
  display: block;
  padding: 0.875rem 1.5rem;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background-color: rgba(255, 255, 255, 0.1);
  border-left-color: var(--accent-color);
}

.sidebar-menu a i {
  margin-right: 0.75rem;
  width: 20px;
}

.sidebar-logout {
  position: absolute;
  bottom: 20px;
  width: 100%;
}

.sidebar-logout a {
  background-color: var(--danger);
  margin: 0 1rem;
  border-radius: 5px;
  text-align: center;
  border-left: none !important;
}

.sidebar-logout a:hover {
  background-color: #c82333;
}

/* ===== DASHBOARD CONTENT ===== */
.dashboard-wrapper {
  margin-left: 260px;
  transition: all 0.3s ease;
}

.dashboard-header {
  background-color: var(--white);
  padding: 1rem 2rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 99;
}

.dashboard-content {
  padding: 2rem;
  min-height: calc(100vh - 80px);
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.page-breadcrumb {
  font-size: 0.9rem;
  color: #666;
}

/* ===== KPI CARDS ===== */
.kpi-card {
  background: linear-gradient(135deg, var(--primary-color) 0%, #003366 100%);
  color: var(--white);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.kpi-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.kpi-card.accent {
  background: linear-gradient(135deg, var(--accent-color) 0%, #d9a000 100%);
  color: var(--primary-color);
}

.kpi-card.success {
  background: linear-gradient(135deg, var(--success) 0%, #218838 100%);
  color: var(--white);
}

.kpi-card.info {
  background: linear-gradient(135deg, var(--info) 0%, #138496 100%);
  color: var(--white);
}

.kpi-icon {
  font-size: 2.5rem;
  opacity: 0.9;
}

.kpi-value {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.kpi-label {
  font-size: 0.95rem;
  opacity: 0.95;
}

/* ===== TABLES ===== */
.table-custom {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.table-custom thead {
  background-color: var(--primary-color);
  color: var(--white);
}

.table-custom thead th {
  border: none;
  padding: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.table-custom tbody td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color);
}

.table-custom tbody tr:last-child td {
  border-bottom: none;
}

.table-custom tbody tr:hover {
  background-color: var(--light-bg);
}

/* ===== FORMS ===== */
.form-custom {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.form-label {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(242, 178, 0, 0.25);
}

/* ===== BADGES ===== */
.badge-status {
  padding: 0.4rem 0.8rem;
  font-weight: 600;
  border-radius: 20px;
}

.badge-pending {
  background-color: var(--warning);
  color: var(--primary-color);
}

.badge-approved {
  background-color: var(--success);
  color: var(--white);
}

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

/* ===== CHART PLACEHOLDER ===== */
.chart-placeholder {
  background-color: var(--white);
  border: 2px dashed var(--border-color);
  border-radius: 10px;
  padding: 4rem 2rem;
  text-align: center;
  color: #999;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* ===== PAGINATION ===== */
.pagination-custom .page-link {
  color: var(--primary-color);
  border: 1px solid var(--border-color);
  margin: 0 0.25rem;
  border-radius: 5px;
}

.pagination-custom .page-link:hover {
  background-color: var(--light-bg);
  border-color: var(--accent-color);
}

.pagination-custom .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* ===== UTILITIES ===== */
.bg-primary-custom {
  background-color: var(--primary-color) !important;
}

.bg-accent {
  background-color: var(--accent-color) !important;
}

.text-primary-custom {
  color: var(--primary-color) !important;
}

.text-accent {
  color: var(--accent-color) !important;
}

.section-padding {
  padding: 4rem 0;
  position: relative;
  overflow: visible;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #666;
  text-align: center;
  margin-bottom: 3rem;
}

/* ===== RESPONSIVE ===== */
/* Mobile First Approach - Base styles are for mobile */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 768px) {
  .sidebar {
    left: -260px;
  }

  .sidebar.active {
    left: 0;
  }

  .dashboard-wrapper {
    margin-left: 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .metric-value {
    font-size: 2rem;
  }

  .kpi-value {
    font-size: 1.5rem;
  }

  /* Stack cards on mobile */
  .card-custom {
    margin-bottom: 1rem;
  }

  /* Adjust padding for mobile */
  .section-padding {
    padding: 2rem 0;
  }

  /* Make tables responsive */
  .table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Adjust navbar brand text */
  .navbar-brand span {
    font-size: 0.95rem;
  }

  /* Make buttons full width on mobile */
  .btn-group-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-group-mobile .btn {
    width: 100%;
  }
}

/* Mobile-specific styles (max 576px) */
@media (max-width: 576px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  /* Reduce card padding on small screens */
  .card-body {
    padding: 1rem;
  }

  /* Stack footer columns */
  footer .col-lg-3,
  footer .col-lg-2,
  footer .col-lg-4 {
    margin-bottom: 2rem;
  }

  /* Adjust metric cards */
  .metric-card {
    text-align: center;
  }

  /* Make dataset cards more compact */
  .dataset-card {
    padding: 1rem;
  }

  .dataset-title {
    font-size: 1rem;
  }

  .dataset-description {
    font-size: 0.875rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }

  .section-padding {
    padding: 5rem 0;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #003d7a 100%);
  color: var(--white);
  padding: 4rem 0 3rem;
  text-align: center;
  margin-bottom: 0;
}

.page-header h1 {
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-header .lead {
  font-size: 1.125rem;
  opacity: 0.95;
}

@media (max-width: 768px) {
  .page-header {
    padding: 2.5rem 0 2rem;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }

  .page-header .lead {
    font-size: 1rem;
  }
}

/* ===== ACCORDION ENHANCEMENTS ===== */
.accordion-button {
  background-color: var(--white);
  color: var(--primary-color);
  font-weight: 600;
}

.accordion-button:not(.collapsed) {
  background-color: var(--light-bg);
  color: var(--primary-color);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--accent-color);
}

/* ===== ACTIVE NAV LINK ===== */
.nav-link.active {
  color: var(--primary-color) !important;
  font-weight: 600;
}

/* ===== TOUCH OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
  /* Increase touch targets for mobile */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }

  .nav-link {
    padding: 0.75rem 1rem;
  }

  .form-control,
  .form-select {
    min-height: 44px;
  }
}

/* ===== MODERN DATASET VIEW STYLES ===== */

/* Dataset Hero Section */
.dataset-hero-section {
  background: linear-gradient(135deg, #001a33 0%, #001a33 50%, #001a33 100%);
  color: var(--white);
  padding: 3rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.dataset-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(242, 178, 0, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.dataset-meta-bar {
  position: relative;
  z-index: 1;
}

.badge-modern {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
}

.meta-item {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
}

.meta-item strong {
  color: rgba(255, 255, 255, 0.95);
  margin-left: 0.25rem;
}

.dataset-title-hero {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.dataset-description-hero {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.institution-badge {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: inline-block;
  position: relative;
  z-index: 1;
}

.institution-icon {
  width: 50px;
  height: 50px;
  background: rgba(242, 178, 0, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.5rem;
  color: var(--accent-color);
}

.dataset-action-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn-dataset-primary {
  background: var(--accent-color);
  color: var(--primary-color);
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(242, 178, 0, 0.3);
}

.btn-dataset-primary:hover {
  background: #d9a000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(242, 178, 0, 0.4);
  color: var(--primary-color);
}

.btn-dataset-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-dataset-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-dataset-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-dataset-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

/* Quick Stats Cards */
.stat-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-color), #003d7a);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  color: var(--white);
  font-size: 1.25rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #666;
  font-weight: 500;
}

/* Modern Tabs */
.modern-tabs-container {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.modern-tabs {
  border-bottom: 2px solid #e8e8e8;
  padding: 0;
  background: #f8f9fa;
}

.modern-tabs .nav-item {
  margin: 0;
}

.modern-tabs .nav-link {
  border: none;
  border-bottom: 3px solid transparent;
  color: #666;
  font-weight: 600;
  padding: 1rem 1.5rem;
  transition: all 0.3s ease;
  background: transparent;
}

.modern-tabs .nav-link:hover {
  color: var(--primary-color);
  background: rgba(0, 33, 71, 0.05);
}

.modern-tabs .nav-link.active {
  color: var(--primary-color);
  border-bottom-color: var(--accent-color);
  background: var(--white);
}

.modern-tab-content {
  padding: 0;
}

/* Modern Cards */
.modern-card {
  border: none;
  border-radius: 0 0 12px 12px;
  box-shadow: none;
}

.section-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  position: relative;
  padding-left: 1rem;
}

.section-heading .heading-line {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--accent-color);
  border-radius: 2px;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 10px;
  border-left: 3px solid var(--accent-color);
}

.info-item i {
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.info-item strong {
  display: block;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

/* Feature Boxes */
.feature-box {
  background: #f8f9fa;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.feature-box:hover {
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-color), #003d7a);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-box h6 {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Application Tags */
.application-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.app-tag {
  background: #e8f4f8;
  color: #0066cc;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d0e8f0;
  transition: all 0.3s ease;
}

.app-tag:hover {
  background: #d0e8f0;
  transform: translateY(-2px);
}

/* Modern Table */
.table-header {
  background: #f8f9fa;
  border-bottom: 2px solid #e8e8e8;
}

.modern-table {
  font-size: 0.9rem;
}

.modern-table thead {
  background: var(--primary-color);
  color: var(--white);
}

.modern-table thead th {
  border: none;
  padding: 1rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.modern-table tbody td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #f0f0f0;
}

.modern-table tbody tr:hover {
  background: #f8f9fa;
}

.modern-table code {
  background: #e8e8e8;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #d63384;
}

/* Skill Badges */
.skill-badge {
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
}

.skill-badge.beginner {
  background: #fef3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.skill-badge.intermediate {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.skill-badge.advanced {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* Status Badges */
.status-badge {
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
}

.status-badge.completed {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-badge.in-progress {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.status-badge.not-started {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Rating Display */
.rating-display {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
}

.table-footer {
  border-top: 2px solid #e8e8e8;
}

/* Responsive Dataset Hero */
@media (max-width: 768px) {
  .dataset-title-hero {
    font-size: 1.75rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .dataset-description-hero {
    font-size: 1rem;
  }

  .dataset-action-bar {
    flex-direction: column;
  }

  .dataset-action-bar .btn {
    width: 100%;
  }

  .modern-tabs .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* Modern Accordion */
.modern-accordion .accordion-item {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.modern-accordion .accordion-button {
  background: #f8f9fa;
  color: var(--primary-color);
  font-weight: 600;
  padding: 1rem 1.25rem;
  border: none;
}

.modern-accordion .accordion-button:not(.collapsed) {
  background: var(--primary-color);
  color: var(--white);
}

.modern-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: var(--accent-color);
}

.modern-accordion .accordion-button::after {
  filter: brightness(0) saturate(100%);
}

.modern-accordion .accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.field-detail {
  background: #f8f9fa;
  padding: 1.25rem;
  border-radius: 8px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-label {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.875rem;
}

.detail-value {
  color: #666;
  font-size: 0.95rem;
}

.detail-value code {
  background: var(--white);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #d63384;
  border: 1px solid #e8e8e8;
}

/* Activity Tab Styles */
.activity-chart-container {
  background: var(--white);
  border: 2px dashed #e8e8e8;
  border-radius: 12px;
  padding: 3rem 2rem;
}

.chart-placeholder-modern {
  text-align: center;
  color: #999;
}

.chart-placeholder-modern i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  color: #ccc;
}

/* Activity Timeline */
.activity-timeline {
  position: relative;
  padding-left: 2rem;
}

.activity-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--primary-color),
    var(--accent-color)
  );
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--border-color);
}

.timeline-content {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--accent-color);
}

/* User Cards */
.user-card {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
  transition: all 0.3s ease;
}

.user-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  margin-right: 1rem;
}

/* Sidebar Modern Styles */
.modern-sidebar-card {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
}

.modern-sidebar-card .card-header {
  background: linear-gradient(135deg, var(--primary-color), #003d7a);
  color: var(--white);
  padding: 1rem 1.25rem;
  font-weight: 600;
  border: none;
}

.sidebar-info-item {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-info-item:last-child {
  border-bottom: none;
}

.sidebar-info-label {
  font-size: 0.875rem;
  color: #666;
  font-weight: 500;
}

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

.download-btn-modern {
  background: linear-gradient(135deg, var(--primary-color), #003d7a);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  margin-bottom: 0.75rem;
}

.download-btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 33, 71, 0.3);
  color: var(--white);
}

.api-code-block {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 1rem;
  border-radius: 8px;
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.related-dataset-link {
  display: block;
  padding: 0.875rem;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.related-dataset-link:hover {
  background: #e9ecef;
  border-left-color: var(--accent-color);
  transform: translateX(4px);
}

.related-dataset-link h6 {
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.related-dataset-link small {
  color: #666;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-modern {
  background: #e8e8e8;
  color: #333;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tag-modern:hover {
  background: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* ===== DATASET VIEW PAGE FIXES ===== */
/* Ensure proper spacing and prevent overlaps */
.section-padding.bg-light .row {
  margin-bottom: 2rem;
}

.section-padding.bg-light .col-lg-8,
.section-padding.bg-light .col-lg-4 {
  margin-bottom: 2rem;
}

/* Ensure cards don't overlap footer */
.card-custom:last-child,
.modern-sidebar-card:last-child {
  margin-bottom: 2rem;
}

/* Clear floats before footer */
.footer-custom::before {
  content: "";
  display: table;
  clear: both;
}

/* Ensure sections have proper spacing */
section + section {
  margin-top: 0;
}

/* Fix for overlapping content */
.container .row {
  isolation: isolate;
}

/* ===== SMOOTH SCROLLING ===== */
html {
  scroll-behavior: smooth;
}

/* ===== LOADING SPINNER ===== */
.spinner-custom {
  border: 3px solid var(--light-bg);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

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

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
    135deg,
    #001a33 0%,
    #002147 25%,
    #003d7a 75%,
    #002147 100%
  );
  position: relative;
  overflow: hidden;
  padding: 1rem;
}

/* Animated Background Pattern */
.login-wrapper::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 20% 80%,
      rgba(242, 178, 0, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(242, 178, 0, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(255, 255, 255, 0.03) 0%,
      transparent 50%
    );
  animation: pulse 15s ease-in-out infinite alternate;
}

@keyframes pulse {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-50px, 50px) rotate(180deg);
  }
}

.login-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
  z-index: 1;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  animation: slideUp 0.6s ease-out;
}

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

.login-left::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 30% 70%,
      rgba(242, 178, 0, 0.1),
      transparent 60%
    ),
    radial-gradient(
      circle at 70% 30%,
      rgba(255, 255, 255, 0.05),
      transparent 60%
    );
}

.login-logo {
  position: relative;
  z-index: 1;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(242, 178, 0, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.login-logo:hover {
  transform: scale(1.05);
  border-color: var(--accent-color);
}

.login-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Form Container */
.login-right {
  padding: 2.5rem 2.5rem 3rem;
}

.login-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  line-height: 1.2;
}

.login-subtitle {
  color: #6c757d;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* Form Inputs */
.form-floating {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-floating .form-control {
  height: 56px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  padding: 1rem 1rem 1rem 3.2rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: #fafafa;
}

.form-floating .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(242, 178, 0, 0.1);
  background: white;
}

.form-floating .form-control:focus ~ .form-icon {
  color: var(--accent-color);
  transform: translateY(-50%) scale(1.1);
}

.form-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #adb5bd;
  font-size: 1.1rem;
  z-index: 5;
  transition: all 0.3s ease;
  pointer-events: none;
}

.form-floating label {
  padding-left: 3.2rem;
  color: #6c757d;
  font-size: 0.9rem;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #adb5bd;
  cursor: pointer;
  z-index: 5;
  padding: 0.5rem;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.password-toggle:hover {
  color: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
}

/* Remember & Forgot */
.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  font-size: 0.875rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.form-check-input:checked {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(242, 178, 0, 0.15);
  border-color: var(--accent-color);
}

.link-primary {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.link-primary::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.link-primary:hover {
  color: var(--accent-color);
}

.link-primary:hover::after {
  width: 100%;
}

/* Login Button */
.btn-login-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #003d7a 100%);
  border: none;
  color: white;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 33, 71, 0.2);
}

.btn-login-primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-login-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-login-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 33, 71, 0.3);
}

.btn-login-primary:active {
  transform: translateY(-1px);
}

.btn-login-primary span {
  position: relative;
  z-index: 1;
}

/* Alert */
.alert-custom {
  border-radius: 12px;
  border: none;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  animation: shake 0.5s;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

/* Back Home Button */
.back-home {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  z-index: 100;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-home:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  transform: translateX(-5px);
  border-color: rgba(242, 178, 0, 0.5);
}

/* Additional Links */
.text-white {
  opacity: 0.9;
}

.text-white:hover {
  opacity: 1;
  text-decoration: none;
}

/* Spinner */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 2px;
}

/* Modal Improvements */
.modal-content {
  border-radius: 16px;
  border: none;
}

.modal-header {
  padding: 1.5rem 1.75rem;
}

.modal-body {
  padding: 1.5rem 1.75rem;
}

/* Mobile Responsive */
@media (max-width: 991px) {
  .login-left {
    min-height: 200px;
    padding: 2rem 1.5rem;
  }

  .login-logo {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 768px) {
  .login-wrapper {
    padding: 0.75rem;
  }

  .login-card {
    border-radius: 16px;
  }

  .login-right {
    padding: 2rem 1.5rem;
  }

  .login-title {
    font-size: 1.75rem;
  }

  .back-home {
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .remember-forgot {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .login-wrapper {
    padding: 0.5rem;
  }

  .login-card {
    border-radius: 14px;
  }

  .login-right {
    padding: 1.75rem 1.25rem;
  }

  .login-title {
    font-size: 1.5rem;
  }

  .login-subtitle {
    font-size: 0.875rem;
  }

  .form-floating .form-control {
    height: 52px;
    padding-left: 2.8rem;
    font-size: 0.9rem;
  }

  .form-icon {
    left: 1rem;
    font-size: 1rem;
  }

  .form-floating label {
    padding-left: 2.8rem;
    font-size: 0.85rem;
  }

  .btn-login-primary {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }

  .back-home {
    position: absolute;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}
