/* ================================================
   University Admissions - Custom Styles
   ================================================ */

/* CSS Variables */
:root {
  --primary-blue: #0d8ae8;
  --primary-blue-hover: #0a6fc2;
  --light-blue: #e8f4fd;
  --text-dark: #1a1a2e;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --bg-gradient-start: #f8fafc;
  --bg-gradient-end: #e2e8f0;
  --card-bg: #ffffff;
  --card-border: #e5e7eb;
  --card-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --card-shadow-hover:
    0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --round-blue: #3b82f6;
  --round-blue-light: #dbeafe;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 20px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: linear-gradient(
    135deg,
    var(--bg-gradient-start) 0%,
    var(--bg-gradient-end) 100%
  );
  min-height: 100vh;
  color: var(--text-dark);
  line-height: 1.6;
}

/* Main Container */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 32px;
}

/* Header Section */
.header-section {
  margin-bottom: 28px;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icon {
  font-size: 36px;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-text h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.header-text p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 4px 0 0 0;
  font-weight: 500;
}

/* Search and Filter Section */
.search-filter-section {
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: 20px 24px;
  box-shadow: var(--card-shadow);
  margin-bottom: 24px;
  border: 1px solid var(--card-border);
}

.search-box {
  position: relative;
}

.search-box .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 16px;
}

.search-box .form-control {
  padding-left: 44px;
  height: 48px;
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  font-size: 14px;
  color: var(--text-dark);
  background: #fafafa;
  transition: var(--transition-fast);
}

.search-box .form-control:focus {
  background: var(--card-bg);
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(13, 138, 232, 0.1);
}

.search-box .form-control::placeholder {
  color: var(--text-light);
}

.filter-dropdown .form-select {
  height: 48px;
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  font-size: 14px;
  color: var(--text-dark);
  background-color: #fafafa;
  padding-right: 40px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-dropdown .form-select:focus {
  background-color: var(--card-bg);
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(13, 138, 232, 0.1);
}

.admission-count {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

/* Cards Section */
.cards-section {
  margin-top: 8px;
}

/* Admission Card */
.admission-card {
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--card-border);
  transition: var(--transition-normal);
  height: 100%;
}

.admission-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
  border-color: var(--primary-blue);
}

/* Card Header */
.card-header-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.university-icon {
  width: 40px;
  height: 40px;
  background: var(--light-blue);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.university-icon i {
  font-size: 18px;
  color: var(--primary-blue);
}

.university-info {
  flex: 1;
  min-width: 0;
}

.university-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  margin: 0;
  word-wrap: break-word;
}

/* Round Badge */
.round-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.round-single {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.round-multiple {
  background: var(--round-blue-light);
  color: var(--round-blue);
  border: 1px solid #93c5fd;
}

/* Education Level */
.education-level {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.education-level i {
  font-size: 14px;
  color: var(--text-light);
}

.education-level span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Rounds Container */
.rounds-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rounds-container.empty-rounds {
  min-height: 60px;
  justify-content: center;
}

.round-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: var(--border-radius-md);
  border-left: 4px solid var(--primary-blue);
}

.round-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-blue);
  background: var(--light-blue);
  padding: 3px 8px;
  border-radius: 6px;
  min-width: 28px;
  text-align: center;
}

.round-date {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
}

.round-arrow {
  color: var(--primary-blue);
  font-weight: 600;
}

.no-periods {
  font-size: 13px;
  color: var(--text-light);
  font-style: italic;
  text-align: center;
  margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .main-container {
    padding: 20px 24px;
  }

  .admission-count {
    text-align: left !important;
    margin-top: 8px;
  }
}

@media (max-width: 767px) {
  .main-container {
    padding: 16px;
  }

  .header-text h1 {
    font-size: 20px;
  }

  .search-filter-section {
    padding: 16px;
  }

  .search-box .form-control,
  .filter-dropdown .form-select {
    height: 44px;
  }

  .admission-card {
    padding: 16px;
  }

  .round-item {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px 12px;
  }

  .round-date {
    font-size: 13.5px;
    font-weight: 600;
  }

  .round-label {
    font-size: 11px;
    padding: 2px 8px;
    min-width: 32px;
    border-radius: 8px;
  }
}

/* Smooth Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admission-card {
  animation: fadeIn 0.4s ease forwards;
}

.admission-card:nth-child(1) {
  animation-delay: 0.1s;
}

.admission-card:nth-child(2) {
  animation-delay: 0.2s;
}

.admission-card:nth-child(3) {
  animation-delay: 0.3s;
}

/* Focus States for Accessibility */
.form-control:focus,
.form-select:focus {
  outline: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
