/* Open Data Module - Minimal CSS using only global theme styles */

/* Hide the native select dropdown since we're using custom dropdown */
.dropdown select {
  display: none !important;
}

/* Ensure proper spacing for the pagination */
.pager {
  margin-top: 2rem;
}

/* Ensure cards maintain proper aspect ratio and spacing */
.card.card-border {
  height: 100%;
		display: flex;
  flex-direction: column;
}

.card.card-border > div:last-child {
  margin-top: auto;
}

/* Filter dropdown menu width adjustment */
.open-data-section .filter .dropdown-menu {
  min-width: 300px;
}

/* Date picker styling consistency */
#datepicker,
#datepicker-filter {
  background: transparent;
  border: 1px solid #ccc;
  padding: 0.5rem;
  border-radius: 0.25rem;
  width: 100%;
}

/* Search input consistency */
.search-text-input {
  background: transparent;
		border: none;
  outline: none;
}

/* .search-input {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 0.5rem;
} */

/* Results number styling */
.results-number {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Card title links */
.card-title a {
  text-decoration: none;
  color: inherit;
}

.card-title a:hover {
  color: #00000f;
}

/* Breadcrumb separator */
/* .breadcrumb-separator::before {
  content: "/";
  color: #6c757d;
} */

/* Ensure proper button spacing in cards */
.card.card-border .btn {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Filter heading styling */
.filter-heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

/* Check box styling in filter */
.check-box {
  margin-bottom: 1rem;
}

.check-box .form-label {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* Type filter buttons */
.choses-type {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.choses-type .type {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s;
}

.choses-type .type:hover {
  background: #f8f9fa;
}

.choses-type .type.active {
  background: #0d6efd;
  color: white;
  border-color: #0d6efd;
}

.choses-type .type p {
  margin: 0;
  margin-right: 0.5rem;
}

.choses-type .type i {
  opacity: 0;
  transition: opacity 0.2s;
}

.choses-type .type.active i {
  opacity: 1;
}

/* Single page specific styles */

/* Hero tags styling */
.hero-tags {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.hero-tags .tags {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.9rem;
}

.hero-tags .tags.blue {
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
}

.hero-tags .tags.green {
  background: rgba(25, 135, 84, 0.1);
  color: #198754;
}

/* Card info styling */
.card-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.card-info.card-info-border {
  border-bottom: 2px solid #dee2e6;
}

/* Icon sizing consistency */
.card-info img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.card-info i {
  font-size: 24px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.single-info-text h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.single-info-text p {
  margin: 0;
  color: #6c757d;
}

.green-color {
  color: #198754 !important;
}

/* Download button styling */
.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
}

/* Video/image container */
.video {
  margin-top: 2rem;
}

.video .position-relative {
  position: relative;
  display: inline-block;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  padding: 1rem;
  cursor: pointer;
}

/* Similar data carousel */
.similar-data-swiper-wrapper {
  padding: 0 1rem;
}

.swiper-btn {
  text-align: center;
  margin-top: 2rem;
}

/* Card tags in similar data */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.card-tag {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
}

.card-tag.gray {
  background: #f8f9fa;
  color: #6c757d;
}

.card-tag.blue {
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
}

.card-tag.green {
  background: rgba(25, 135, 84, 0.1);
  color: #198754;
}

/* Hero link button */
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

/* Multi-step form styles */
.card.steps {
  padding: 1.5rem;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
}

.step-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.step-content:last-child {
  border-bottom: none;
}

.step-content:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1.5rem;
  bottom: -1rem;
  width: 2px;
  height: 2rem;
  background: #dee2e6;
}

.step-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-content.current-step .step-circle {
  background: #1b8354;
  color: white;
}

.step-content.complete-step .step-circle {
  background: #198754;
  border-color: #198754;
  color: white;
}

.step-content.complete-step::after {
  background: #198754;
}

.step-text {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.step-title {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.step-content p.step-text {
  margin: 0;
  font-size: 0.9rem;
  color: #6c757d;
}

.step-view {
  display: block;
}

.check-icon {
  font-size: 1.2rem;
}

/* Form field styling */
.require-mark {
  color: #dc3545;
}

.require-field {
  color: #6c757d;
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* Button styling for multi-step */
.prev-step-btn:disabled,
.next-step-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Open Data Request Form in Detail Page */
#open-data-request-form-wrapper {
  width: 100%;
}

#open-data-request-form-wrapper form {
  width: 100%;
}

#open-data-request-form-wrapper .form-control {
  width: 100%;
}

#open-data-request-form-wrapper .form-check {
  margin-bottom: 1rem;
}

#open-data-request-form-wrapper .form-check-input {
  margin-right: 0.5rem;
}

#open-data-request-form-wrapper .btn {
  margin-top: 1rem;
}

/* Ensure form fields are properly styled in tabs */
.tab-pane #open-data-request-form-wrapper {
  padding: 0;
}

.tab-pane #open-data-request-form-wrapper .row {
  margin: 0;
}

.tab-pane #open-data-request-form-wrapper .col-md-6,
.tab-pane #open-data-request-form-wrapper .col-12 {
  padding: 0 0.5rem;
} 
.open-data-request-wrapper .card.steps .step-content h2{
  color: white !important;
}

/* Success message styling for detail page */
.open-data-request-section .alert-success {
  border: 1px solid #d4edda;
  border-radius: 0.375rem;
  background-color: #d1e7dd;
  color: #0f5132;
  padding: 1.5rem;
}

.open-data-request-section .alert-success .hgi-checkmark-circle-02 {
  color: #198754;
}

.open-data-request-section .alert-heading {
  color: #0f5132;
  font-weight: 600;
}

/* Animation for success message */
.alert-success {
  animation: fadeInUp 0.5s ease-out;
}

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

/* Step indicator completion states */
.step-content.complete-step .step-circle {
  background-color: #198754;
  border-color: #198754;
  color: white;
}

.step-content.complete-step .step-title.text-success {
  color: #198754 !important;
}

/* Form submission loading state */
.custom-ajax-form.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Smooth transitions for form state changes */
#success-message-container,
#server-success-message,
#form-container {
  transition: all 0.3s ease-in-out;
}