/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

a {
  text-decoration: none;
  color: #0056b3;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

/* Button Styles - Enhanced UI/UX */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.btn:focus {
  outline: 2px solid #0056b3;
  outline-offset: 2px;
}

.btn-primary {
  background-color: #0056b3;
  color: #fff;
}

.btn-primary:hover {
  background-color: #004494;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 86, 179, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 86, 179, 0.2);
}

.btn-secondary {
  background-color: #6c757d;
  color: #fff;
}

.btn-secondary:hover {
  background-color: #5a6268;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.9rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Navbar Styles */
.navbar {
  background-color: #2c3e50;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 15px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
  display: block;
}

.logo a:first-child {
  display: flex;
  align-items: center;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  transition: color 0.3s ease;
}

.logo a:hover {
  color: #ecf0f1;
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: #ecf0f1;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #fff;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
}

/* Hero Carousel Section */
.hero-carousel {
  position: relative;
  width: 100%;
  min-height: 500px;
  margin-bottom: 40px;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 500px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.8s ease-out;
}

.hero-content p {
  font-size: 1.5em;
  margin-bottom: 30px;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons .btn {
  font-size: 1.2em;
  padding: 12px 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn-primary {
  background-color: #1a73e8;
  border: none;
}

.hero-buttons .btn-secondary {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Carousel Navigation */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.3);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(255, 255, 255, 0.5);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-indicators .indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease;
  padding: 0;
}

.carousel-indicators .indicator.active {
  background: #fff;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  /* Fix hero title overlap with header - add margin-top to account for sticky navbar */
  .hero-carousel {
    min-height: 400px;
    margin-bottom: 0;
    margin-top: 0;
  }
  
  .carousel-container {
    height: 400px;
  }
  
  /* Ensure hero content has proper spacing from top to prevent overlap with navbar */
  .hero-content {
    padding-top: 60px;
    padding-bottom: 20px;
    margin-top: 0;
  }
  
  .hero-content h1 {
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.2;
  }
  
  .hero-content p {
    font-size: 1.1em;
    margin-bottom: 20px;
  }
  
  /* Fix button alignment - ensure proper centering and stacking */
  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
  }
  
  .hero-buttons .btn {
    width: 200px;
    max-width: 90%;
    text-align: center;
    padding: 12px 24px;
    font-size: 1em;
    margin: 0;
  }
  
  .carousel-prev,
  .carousel-next {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .carousel-prev {
    left: 10px;
  }
  
  .carousel-next {
    right: 10px;
  }
  
  /* Remove unwanted white space after hero section */
  .hero-carousel + .container {
    margin-top: 0;
    padding-top: 20px;
  }
  
  .scholar-highlights {
    padding-top: 20px;
    padding-bottom: 40px;
  }
}

/* Announcements Section */
.announcements {
  margin-bottom: 40px;
}

.announcements h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #0056b3;
}

.announcement-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 24px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 86, 179, 0.2);
}

.card h3 {
  margin-bottom: 10px;
  color: #0056b3;
  margin-top: 0;
}

.card p:not(.date) {
  margin-bottom: 12px;
}

.card p:not(.date):last-of-type {
  margin-bottom: 0;
  flex-grow: 1;
}

.card .date {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 12px;
}

/* Scholar Highlights Section */
.scholar-highlights {
  padding: 60px 0;
  background-color: #f8f9fa;
  text-align: center;
}

.scholar-highlights h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #2c3e50;
  font-size: 1.75em;
}

.highlight-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
  .highlight-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
  .highlight-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.highlight-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.highlight-card:focus {
  outline: 2px solid #4a6fdc;
  outline-offset: 2px;
}

.highlight-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.highlight-card .highlight-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background-color: #f5f5f5;
  border-radius: 12px 12px 0 0;
}

.highlight-card .highlight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.highlight-card:hover .highlight-image img {
  transform: scale(1.02);
}

.highlight-card .highlight-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

@media (min-width: 768px) {
  .highlight-card .highlight-content {
    padding: 20px;
  }
}

.highlight-card h3 {
  margin: 0.75rem 0 0.5rem 0;
  font-size: 1.5rem;
  color: #2c3e50;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

@media (min-width: 768px) {
  .highlight-card h3 {
    font-size: 1.75rem;
  }
}

.highlight-card .highlight-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.875rem;
  gap: 12px;
}

.highlight-card .scholar-name {
  color: #4a6fdc;
  font-weight: 500;
  text-decoration: none;
  flex-shrink: 0;
}

.highlight-card .scholar-name:hover {
  text-decoration: underline;
}

.highlight-card .highlight-date {
  color: #888;
  font-size: 0.875rem;
  flex-shrink: 0;
  text-align: right;
}

.highlight-card .highlight-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95em;
}

.section-footer {
  width: 100%;
  text-align: center;
  margin: 40px auto;
  padding: 0 20px;
}

.section-footer .btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1.1em;
  font-weight: 500;
  transition: all 0.3s ease;
  background-color: #005baa;
  color: #fff;
  border: none;
  min-width: 200px;
}

.section-footer .btn:hover {
  transform: translateY(-2px);
  background-color: #004a88;
  box-shadow: 0 4px 8px rgba(0, 91, 170, 0.2);
}

.no-highlights {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  max-width: 600px;
}

.no-highlights p {
  color: #666;
  font-size: 1.2em;
  line-height: 1.5;
}

/* Scholars List Section */
.scholars-list {
  margin-bottom: 40px;
}

.scholars-list h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #0056b3;
}

.search-container {
  display: flex;
  margin-bottom: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.search-container input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
}

.search-container button {
  padding: 10px 15px;
  background-color: #0056b3;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th,
table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #495057;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

table tbody tr {
  transition: background-color 0.2s ease;
}

table tbody tr:hover {
  background-color: #f8f9fa;
}

/* Quick Guide Page Styles */
.quick-guide {
  padding: 40px 0;
}

.quick-guide h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #0056b3;
}

.guide-intro {
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.guide-steps {
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  margin-bottom: 30px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  background-color: #0056b3;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}

.step-content {
  padding: 20px;
  flex: 1;
}

.step-content h3 {
  margin-bottom: 10px;
  color: #0056b3;
}

.english {
  margin-bottom: 10px;
}

.filipino {
  font-style: italic;
  color: #6c757d;
}

/* Login and Register Page Styles */
.login-section,
.register-section {
  padding: 40px 0;
}

.login-container,
.register-container {
  max-width: 500px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 40px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.login-container h2,
.register-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #0056b3;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background-color: #fff;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #0056b3;
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.form-group input:hover:not(:disabled),
.form-group select:hover:not(:disabled) {
  border-color: #adb5bd;
}

/* Email and Name Validation Styles - Client-Side Only */
.form-group input.validation-error,
.form-group select.validation-error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group input.validation-valid,
.form-group select.validation-valid {
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.validation-error-message {
  display: none;
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 6px;
  line-height: 1.4;
  font-weight: 500;
}

.validation-error-message::before {
  content: "⚠ ";
  margin-right: 4px;
}

.form-group small {
  display: block;
  margin-top: 5px;
  color: #6c757d;
}

.alert {
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 20px;
  border-left: 4px solid;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
  line-height: 1.5;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #dc3545;
  border-left-color: #dc3545;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border-color: #28a745;
  border-left-color: #28a745;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border-color: #ffc107;
  border-left-color: #ffc107;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border-color: #17a2b8;
  border-left-color: #17a2b8;
}

.login-footer,
.register-footer {
  text-align: center;
  margin-top: 20px;
}

/* Footer Styles */
footer {
  background-color: #2c3e50;
  color: #fff;
  padding: 25px 0 15px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 15px;
}

.footer-section h3 {
  margin-bottom: 15px;
  color: #fff;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #ecf0f1;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #fff;
}

.footer-section p {
  margin-bottom: 10px;
}

.footer-section i {
  margin-right: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    position: fixed;
    top: 75px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 75px);
    background-color: #34495e;
    transition: 0.3s;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  }

  nav.active {
    left: 0;
  }

  nav ul {
    flex-direction: column;
    padding: 20px;
  }

  nav ul li {
    margin: 10px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .highlight-cards {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  
  .highlight-card .highlight-image {
    height: 180px;
  }
}

/* Certificate Styles */
.certificate-container {
  width: 800px;
  margin: 0 auto;
  padding: 40px;
  border: 2px solid #000;
  box-sizing: border-box;
  font-family: "Times New Roman", Times, serif;
}

.certificate-header {
  text-align: center;
  margin-bottom: 30px;
}

.certificate-header img {
  width: 80px;
  height: auto;
}

.certificate-header h1 {
  font-size: 24px;
  margin: 10px 0;
}

.certificate-header h2 {
  font-size: 20px;
  margin: 10px 0;
  text-transform: uppercase;
  text-decoration: underline;
}

.certificate-content {
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 50px;
}

.signature-line {
  border-top: 1px solid #000;
  width: 300px;
  margin: 0 auto;
  text-align: center;
  padding-top: 5px;
  font-size: 14px;
}

.date-line {
  border-top: 1px solid #000;
  width: 200px;
  text-align: center;
  padding-top: 5px;
  font-size: 14px;
}

/* Claim Form Styles */
.claim-form-container {
  width: 800px;
  margin: 0 auto;
  padding: 40px;
  border: 2px solid #000;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

.claim-header {
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 2px solid #000;
  padding-bottom: 20px;
}

.claim-header-flex {
  display: flex;
  align-items: center;
  justify-content: center;
}

.claim-header img {
  width: 80px;
  height: auto;
  margin-right: 20px;
}

.claim-header-text {
  text-align: center;
}

.claim-header h1 {
  font-size: 18px;
  margin: 5px 0;
  text-transform: uppercase;
}

.claim-header h2 {
  font-size: 22px;
  margin: 15px 0 5px;
  text-transform: uppercase;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.info-table th,
.info-table td {
  border: 1px solid #000;
  padding: 10px;
}

.info-table th {
  background-color: #f2f2f2;
  text-align: left;
  width: 40%;
}

.instructions {
  margin-bottom: 30px;
}

.instructions h3 {
  font-size: 16px;
  margin-bottom: 10px;
  text-decoration: underline;
}

.instructions ul {
  padding-left: 20px;
  list-style-type: disc;
}

.instructions li {
  margin-bottom: 5px;
}

.signature-section {
  margin-top: 50px;
  display: flex;
  justify-content: space-between;
}

.signature-box {
  width: 45%;
  text-align: center;
}

/* Print Application Styles */
.print-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.print-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 2px solid #333;
  padding-bottom: 20px;
}

.print-header img {
  width: 120px;
  height: auto;
  margin-right: 20px;
}

.print-header-text {
  text-align: center;
  flex: 1;
}

.section {
  margin-bottom: 30px;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 20px;
  background-color: #f9f9f9;
}

.section h2 {
  color: #333;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
  margin-top: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.button-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.print-btn {
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.back-btn {
  background-color: #f44336;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

/* Filter Form Improvements */
.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.filter-form .form-group {
  flex: 1;
  min-width: 200px;
}

/* Status Badge Colors */
.status-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-badge.processing {
  background-color: #17a2b8;
  color: #fff;
}

.status-badge.ready-for-claim {
  background-color: #ffc107;
  color: #212529;
}

.status-badge.claimed {
  background-color: #28a745;
  color: #fff;
}

.status-badge.cancelled {
  background-color: #dc3545;
  color: #fff;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 500px;
  max-width: 90%;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
}

/* Tab System Styles */
.tab-container {
  margin-bottom: 24px;
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 2px solid #e9ecef;
  margin-bottom: 24px;
  padding-bottom: 0;
}

.tab-button {
  padding: 12px 24px;
  background-color: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #6c757d;
  transition: all 0.2s ease;
  position: relative;
  bottom: -2px;
  margin-bottom: 0;
}

.tab-button:hover {
  color: #0056b3;
  background-color: #f8f9fa;
}

.tab-button.active {
  color: #0056b3;
  border-bottom-color: #0056b3;
  background-color: #fff;
}

.tab-button:focus {
  outline: 2px solid #0056b3;
  outline-offset: 2px;
  border-radius: 4px 4px 0 0;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Print-specific styles */
@media print {
  body {
    font-size: 12pt;
    line-height: 1.5;
    background: none;
  }

  .print-container,
  .certificate-container,
  .claim-form-container {
    box-shadow: none;
    max-width: 100%;
  }

  .no-print,
  .button-container {
    display: none !important;
  }

  .section {
    break-inside: avoid;
    border: 1px solid #000;
  }

  table {
    break-inside: auto;
  }

  tr {
    break-inside: avoid;
    break-after: auto;
  }

  thead {
    display: table-header-group;
  }

  tfoot {
    display: table-footer-group;
  }
}

/* Print Preview Modal Styles */
.print-preview-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: auto;
}

.print-preview-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.print-preview-modal-content {
  background-color: #fff;
  margin: 20px auto;
  width: 95%;
  max-width: 1200px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.print-preview-modal-header {
  background-color: #2c3e50;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #1a252f;
}

.print-preview-modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.print-preview-close {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.print-preview-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.print-preview-modal-body {
  flex: 1;
  overflow: hidden;
  position: relative;
  background-color: #f5f5f5;
}

.print-preview-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  background-color: #fff;
}

.print-preview-modal-footer {
  background-color: #f8f9fa;
  padding: 15px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #dee2e6;
}

.print-preview-close-btn,
.print-preview-print-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.print-preview-close-btn {
  background-color: #6c757d;
  color: white;
}

.print-preview-close-btn:hover {
  background-color: #5a6268;
}

.print-preview-print-btn {
  background-color: #0056b3;
  color: white;
}

.print-preview-print-btn:hover {
  background-color: #004494;
}

/* Print button styling for preview trigger */
.preview-print-btn {
  cursor: pointer;
}

/* Report Preview Modal Styles */
.report-preview-modal {
  display: none;
  position: fixed;
  z-index: 10001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: auto;
}

.report-preview-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.report-preview-modal-content {
  background-color: #fff;
  margin: 20px auto;
  width: 95%;
  max-width: 1400px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.report-preview-modal-header {
  background-color: #2c3e50;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #1a252f;
}

.report-preview-modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.report-preview-close {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.report-preview-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.report-preview-modal-body {
  flex: 1;
  overflow: auto;
  position: relative;
  background-color: #f5f5f5;
  min-height: 400px;
}

.report-preview-modal-body #report-preview-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.report-preview-modal-body #report-preview-error {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 80%;
  max-width: 500px;
}

.report-preview-modal-body #report-preview-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.report-preview-loading {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 1.1rem;
}

.report-preview-error {
  text-align: center;
  padding: 40px;
  color: #dc3545;
  font-size: 1rem;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  margin: 20px;
}

.report-preview-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  background-color: #fff;
}

.report-preview-modal-footer {
  background-color: #f8f9fa;
  padding: 15px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #dee2e6;
}

.report-preview-cancel-btn,
.report-preview-confirm-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.report-preview-cancel-btn {
  background-color: #6c757d;
  color: white;
}

.report-preview-cancel-btn:hover {
  background-color: #5a6268;
}

.report-preview-confirm-btn {
  background-color: #28a745;
  color: white;
}

.report-preview-confirm-btn:hover {
  background-color: #218838;
}
