/*
 Override bootstrap style
*/

.navbar .logo {
	margin: 3px;
	margin-right: 10px;
}

.modal form {
	margin-bottom: 0;
}

/* Original navbar gradient - keeping for compatibility */
.navbar-inner {
  background-image:-moz-linear-gradient(top, #1884d7, #1262a0);
  background-image:-ms-linear-gradient(top, #1884d7, #1262a0);
  background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#1884d7), to(#1262a0));
  background-image:-webkit-linear-gradient(top, #1884d7, #1262a0);
  background-image:-o-linear-gradient(top, #1884d7, #1262a0);
  background-image:linear-gradient(top, #1884d7, #1262a0);
}

.btn-navbar:active,.btn-navbar.active{
  background-color:#080808;
}

.search-query {
  width: 40%;
}

#main-content {
	margin-bottom: 50px;
}

/* Accordion styles - Updated for modern look */
.accordion-group {
  background-color: #F5F5F5;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-height: 20px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.accordion-group:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.accordion-heading h3 {
	padding: 15px;
  margin: 0;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.accordion-heading .accordion-toggle {
  display: inline-block;
	padding: 8px 15px;
  background: linear-gradient(45deg, var(--secondary-color), #2980b9);
  color: white;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.accordion-heading .accordion-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.full-width {
	width: 99%;
}

.result-head {
	display:block;
	padding:12px 15px;
  font-weight: 600;
  color: var(--primary-color);
}

.loader {
	display: none;
	margin: 0 auto;
}

.field-author {
	font-style: italic;
  color: #666;
  font-size: 0.9em;
}

.field-title {
	width: 60%;
}

.field-paging {
	width: 80%;
  padding: 15px 0;
}

/* Fixed Paging Styles */
.pagination {
  margin: 15px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.pagination ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.pagination li {
  display: inline-block;
}

.pagination a, .pagination span {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  text-decoration: none;
  color: var(--secondary-color);
  transition: all 0.3s ease;
  background: white;
}

.pagination a:hover {
  background: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

.pagination .active a {
  background: linear-gradient(45deg, var(--secondary-color), #2980b9);
  color: white;
  border-color: var(--secondary-color);
}

.pagination .active a:hover {
  transform: none;
}

.alert-danger, .alert-error {
  background-color: rgb(185, 74, 72);
  border: none;
  color: rgb(242, 222, 222);
  text-shadow: none;
  border-radius: 8px;
  padding: 12px 15px;
}

.no-result-info {
  display: none;
  margin: 20px 0;
}

#page-loader { 
  position:fixed; 
  top:50%; 
  left:50%; 
  z-index:99; 
  width:60px; 
  height:60px; 
  margin:-30px 0 0 -30px; 
  text-indent:-999em; 
  background:#fff url(../result-loader.gif) no-repeat center center; 
  border-radius:10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#masking {
  background: transparent url(images/line-dotted.png) left top repeat;
  width:100%;
  height:150%;
  position:fixed;
  top: -100px;
  z-index: -99;
  padding:0;
  margin:0;
  opacity: 0.1;
}

#adv-search-form table {
  width: 650px;
}

/* Modern Styles */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --light-bg: #f8f9fa;
  --dark-text: #2c3e50;
}

body {
  padding-top: 76px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  line-height: 1.6;
}

/* Modern Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.navbar-nav .nav-link {
  color: var(--primary-color) !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--secondary-color) !important;
}

/* Search Hero Section */
.search-hero {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 3rem;
  margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
}

.btn-primary {
  background: linear-gradient(45deg, var(--secondary-color), #2980b9);
  border: none;
  border-radius: 25px;
  padding: 10px 25px;
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* Section Styles */
.section {
  padding: 80px 0;
  margin: 40px 0;
}

.section-light {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.section-dark {
  background: rgba(44, 62, 80, 0.95);
  color: white;
  border-radius: 20px;
}

.about-img {
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.about-img:hover {
  transform: scale(1.05);
}

/* FAQ Accordion */
.accordion-button {
  background: linear-gradient(45deg, var(--primary-color), #34495e);
  color: white;
  border-radius: 10px !important;
  margin-bottom: 10px;
  border: none;
  font-weight: 600;
  padding: 15px 20px;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(45deg, var(--secondary-color), #2980b9);
  color: white;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.accordion-body {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0 0 10px 10px;
  color: var(--dark-text);
}

/* Footer */
.footer {
  background: rgba(44, 62, 80, 0.95);
  color: white;
  padding: 50px 0 20px;
  margin-top: 50px;
}

.footer h5 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: 700;
}

.footer a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--secondary-color);
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--secondary-color);
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
  background: var(--accent-color);
}

.node-badge {
  background: linear-gradient(45deg, #e74c3c, #c0392b);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8em;
  margin-left: 10px;
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

#main-content {
  min-height: 60vh;
}

/* Table Styles for Search Results */
.nayanes-result {
  width: 100%;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.nayanes-result thead {
  background: linear-gradient(45deg, var(--primary-color), #34495e);
  color: white;
}

.nayanes-result th {
  padding: 15px;
  font-weight: 600;
  border: none;
}

.nayanes-result td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.nayanes-result tr:hover {
  background-color: rgba(52, 152, 219, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
  
  .search-hero {
    padding: 2rem 1rem;
    margin: 1rem 0;
  }
  
  .section {
    padding: 40px 0;
    margin: 20px 0;
  }
  
  .pagination {
    flex-direction: column;
    align-items: center;
  }
  
  .pagination ul {
    justify-content: center;
  }
  
  .field-title, .field-paging {
    width: 100%;
  }
  
  .nayanes-result {
    font-size: 0.9em;
  }
  
  .nayanes-result td, .nayanes-result th {
    padding: 8px 10px;
  }
}

/* Animation Classes */
.animate__animated {
  animation-duration: 0.6s;
}

.animate__fadeInUp {
  animation-name: fadeInUp;
}

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

/* Utility Classes */
.text-gradient {
  background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-custom {
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Loading States */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Success States */
.alert-success {
  background: linear-gradient(45deg, #27ae60, #2ecc71);
  color: white;
  border: none;
  border-radius: 8px;
}