/* Modern NRI College Cutoff Stylesheet */

:root {
  /* Color Palette */
  --primary: #1e77c0;
  --primary-light: #1e749e;
  --primary-dark: #38abe4;
  --secondary: #64748b;
  --accent: #f59e0b;
  --light: #f8fafc;
  --dark: #1e293b;
  --success: #10b981;
  --danger: #ef4444;

  /* Typography */
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing & Sizing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base Styles */


/* Container */
.nri-container {
  font-family: var(--font-primary);
  max-width: 1200px;
  margin: 2rem auto;
  padding: var(--spacing-lg);
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .nri-container {
    margin: 1rem;
    padding: var(--spacing-md);
  }
}

/* Heading */
.nri-heading {
  color: #3498db;
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xl);
  text-align: center;
  position: relative;
  padding-bottom: var(--spacing-md);
}

.nri-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-light), var(--primary));
  border-radius: var(--radius-full);
}

/* Filter Group */
.nri-filter-group {
  display: flex;
  justify-content: center;
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.nri-filter-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  font-weight: 500;
  background-color: var(--light);
  border: 1px solid #e2e8f0;
  user-select: none;
}

.nri-filter-option:hover {
  background-color: #e2e8f0;
}

.nri-filter-option input[type="radio"] {
  margin-right: var(--spacing-sm);
  accent-color: var(--primary);
}

.nri-filter-option input[type="radio"]:checked+span {
  color: var(--primary);
  font-weight: 600;
}

/* Region Group */
.nri-region-group {
  display: flex;
  justify-content: center;
  margin-bottom: var(--spacing-xl);
  gap: var(--spacing-md);
  flex-wrap: wrap;
  animation: fadeIn 0.3s ease;
}

.nri-region-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  font-weight: 500;
  background-color: var(--light);
  border: 1px solid #e2e8f0;
}

.nri-region-option:hover {
  background-color: #e2e8f0;
}

.nri-region-option input[type="radio"] {
  margin-right: var(--spacing-sm);
  accent-color: var(--primary);
}

.nri-region-option input[type="radio"]:checked+span {
  color: var(--primary);
  font-weight: 600;
}

/* Dropdown Styles */
.nri-select-wrapper {
  margin-bottom: var(--spacing-xl);
}

.nri-select-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--secondary);
}

.nri-dropdown {
  width: 100%;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  border: 1px solid #cbd5e1;
  background-color: white;
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--dark);
  outline: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
}

.nri-dropdown:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Button Styles */
.nri-search-button {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto var(--spacing-xl);
  padding: var(--spacing-md) var(--spacing-lg);
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nri-search-button:hover {
  background-color: transparent;
  color: #3498db;
  border: 2px solid #3498db;
}

.nri-search-button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Loader */
.nri-loader {
  display: none;
  text-align: center;
  padding: var(--spacing-lg);
  font-weight: 500;
  color: var(--secondary);
  position: relative;
}

.nri-loader::before {
  content: '';
  width: 24px;
  height: 24px;
  border: 3px solid rgba(99, 102, 241, 0.3);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: var(--spacing-md);
  vertical-align: middle;
}

/* Results Containers */
.nri-college-results,
.nri-rounds-results {
  margin-top: var(--spacing-lg);
  overflow-x: auto;
  animation: fadeIn 0.5s ease;
}

/* Table Styles */
.nri-data-table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: var(--shadow-md);
  background-color: white;
  border-radius: var(--radius-md);
  overflow: hidden;

}

.nri-data-table thead {
  background-color: var(--primary);
  color: white;
}

.nri-data-table th {
  padding: var(--spacing-md);
  text-align: left;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 10;
}


.nri-data-table th,
.nri-data-table td {
  padding: var(--spacing-lg);
  /* more padding */
  width: 100%;
  max-width: 450px;
  /* adjust to taste */
  white-space: nowrap;
  /* prevent wrapping */
  overflow: hidden;
  /* hide overflow when too narrow */
  text-overflow: ellipsis;
  /* show “…” on overflow */
}

.nri-data-table tbody tr {
  transition: background-color 0.2s ease;
}

.nri-data-table tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

.nri-data-table tbody tr:hover {
  background-color: #e0e7ff;
}

.nri-data-table td {
  padding: var(--spacing-md);
  border-bottom: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
  .nri-data-table {
    font-size: 0.875rem;
  }

  .nri-data-table th,
  .nri-data-table td {
    padding: var(--spacing-sm);
  }
}

/* Payment Modal */
.nri-payment-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.nri-payment-card {
  background-color: white;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: slideIn 0.4s ease;
}

.nri-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--primary);
  color: white;
  padding: var(--spacing-md) var(--spacing-lg);
}

.nri-modal-title {
  font-weight: 600;
  margin: 0;
}

.nri-modal-close {
  cursor: pointer;
  font-weight: bold;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nri-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.nri-payment-choices {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.nri-payment-choice {
  display: flex;
  align-items: center;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  border: 2px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.nri-payment-choice:hover {
  border-color: var(--primary-light);
  background-color: #f8fafc;
}

.nri-payment-choice input[type="radio"] {
  margin-right: var(--spacing-md);
  accent-color: var(--primary);
}

.nri-payment-choice.nri-selected {
  border-color: var(--primary);
  background-color: #e0e7ff;
}

.nri-proceed-button {
  display: block;
  width: calc(100% - var(--spacing-xl) * 2);
  margin: 0 auto var(--spacing-lg);
  padding: var(--spacing-md);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.nri-proceed-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Adjustments */
@media (max-width: 576px) {
  .nri-heading {
    font-size: 1.5rem;
  }

  .nri-filter-group,
  .nri-region-group {
    flex-direction: column;
    align-items: stretch;
  }

  .nri-filter-option,
  .nri-region-option {
    justify-content: flex-start;
  }

  .nri-payment-card {
    width: 95%;
  }
}

/* Custom Scrollbar */
.nri-rounds-results::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.nri-rounds-results::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: var(--radius-full);
}

.nri-rounds-results::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: var(--radius-full);
}

.nri-rounds-results::-webkit-scrollbar-thumb:hover {
  background-color: grey;
}







/* json data css */


.nri-box-wrapper {
  padding: 40px 20px;
  background: linear-gradient(to right, #f8fcff, #ffffff);
  font-family: "Segoe UI", sans-serif;
}

.nri-data-box {
  max-width: 1200px;
  margin: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 30px;
  transition: transform 0.3s;
}

.nri-data-box:hover {
  transform: scale(1.01);
}

.nri-header-block {

  text-align: center;
  padding: 30px 20px;
  color: #3498db;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.1);
}

.nri-main-heading {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.nri-sub-text {
  font-size: 15px;
  opacity: 0.9;
}

.nri-filter-area {
  margin: 20px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.nri-filter-dropdown {
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #bbb;
  font-size: 15px;
  background: #fefefe;
  transition: border-color 0.3s;
}

.nri-filter-dropdown:focus {
  border-color: #2196f3;
  outline: none;
}

.nri-styled-table {
  font-size: 14px;
  border-collapse: collapse;
  width: 100%;
}

.nri-styled-table thead {
  background: #2196f3;
  color: #fff;
}

.nri-styled-table th,
.nri-styled-table td {
padding: 15px !important;
  text-align: left;
}
  
.nri-styled-table tbody tr {
  background-color: white !important;
}

.nri-error-alert {
  background-color: #ffe6e6;
  color: #c62828;
  padding: 12px;
  margin-bottom: 16px;
  border-left: 4px solid #c62828;
  border-radius: 6px;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .nri-main-heading {
    font-size: 22px;
  }

  .nri-sub-text {
    font-size: 13px;
  }

  .nri-filter-area {
    flex-direction: column;
    align-items: flex-start;
  }
}

.nri-table-scroll {
  overflow-x: auto;
  width: 100%;
}

table.dataTable {
  width: 100% !important;
}

table.dataTable td,
table.dataTable th {
  white-space: nowrap;
}
