/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto:wght@300;400;500&display=swap');

/* New color palette */
:root {
  --bg-dark: #0A0A23; /* Deep space blue */
  --text-white: #E0E0FF; /* Soft white with blue tint */
  --accent-neon-blue: #00F0FF; /* Neon Blue */
  --accent-neon-pink: #FF00E6; /* Neon Pink */
  --accent-neon-green: #00FF85; /* Neon Green */
  --accent-dark-blue: #1E3A8A; /* Dark Blue */
  --accent-dark-pink: #831843; /* Dark Pink */
  --text-light: #A5B4FC; /* Light Blue-Gray */
  --card-bg: #1A1A40; /* Dark Blue-Gray */
  --shadow: rgba(0, 240, 255, 0.3);
  --glow-blue: rgba(0, 240, 255, 0.5);
  --glow-pink: rgba(255, 0, 230, 0.5);
}

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

body {
  font-family: 'Roboto', sans-serif;
  background: var(--bg-dark);
  color: var(--text-white);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Futuristic background effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.1), transparent 70%);
  opacity: 0.3;
  z-index: -1;
}

/* Hero Section */
.hero {
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px;
}

.hero-stats {
  display: flex;
  align-items: flex-start;
  gap: 50px;
  max-width: 1400px;
  width: 100%;
}

/* Progress Container */
.progress-container {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 50px;
  justify-content: center;
  align-items: center;
}

.progress-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.progress-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}

.progress-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-neon-blue), var(--accent-neon-pink));
  box-shadow: 0 0 10px var(--accent-neon-blue);
}

.progress-circle {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: pulse 2s infinite;
}

.progress-ring-circle {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dasharray 0.5s ease;
}

.university-progress .progress-ring-circle {
  stroke: var(--accent-neon-blue);
}

.type-progress .progress-ring-circle {
  stroke: var(--accent-neon-pink);
}

.progress-total {
  position: absolute;
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  color: var(--text-white);
  text-shadow: 0 0 10px var(--accent-neon-blue);
}

.breakdown-list {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 15px;
  width: 300px;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 5px 20px var(--shadow);
}

.breakdown-list::-webkit-scrollbar {
  width: 6px;
}

.breakdown-list::-webkit-scrollbar-track {
  background: var(--accent-dark-blue);
  border-radius: 3px;
}

.breakdown-list::-webkit-scrollbar-thumb {
  background: var(--accent-neon-blue);
  border-radius: 3px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  color: var(--text-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breakdown-item:last-child {
  border-bottom: none;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* Live Updates Box */
.live-updates-box {
  width: 300px;
  background: var(--card-bg);
  border-radius: 15px;
  box-shadow: 0 5px 20px var(--shadow);
  padding: 20px;
  height: 600px;
  display: flex;
  flex-direction: column;
}

.updates-header {
  margin-bottom: 20px;
  text-align: center;
}

.updates-header h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  color: var(--accent-neon-blue);
}

.updates-header p {
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  color: var(--text-light);
}

.updates-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.updates-list::-webkit-scrollbar {
  width: 6px;
}

.updates-list::-webkit-scrollbar-track {
  background: var(--accent-dark-blue);
  border-radius: 3px;
}

.updates-list::-webkit-scrollbar-thumb {
  background: var(--accent-neon-blue);
  border-radius: 3px;
}

.update-item {
  background: var(--accent-dark-blue);
  border-radius: 10px;
  padding: 10px;
  animation: slide-in 0.5s ease-out;
}

.update-text {
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  color: var(--text-white);
  line-height: 1.4;
}

.update-timestamp {
  font-family: 'Roboto', sans-serif;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 5px;
}

@keyframes slide-in {
  0% { opacity: 0; transform: translateX(20px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Card Sections */
.card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  margin: 40px 0;
  box-shadow: 0 5px 20px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow);
}

/* Section Header */
.section-header {
  margin-bottom: 30px;
  text-align: center;
}

h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  color: var(--accent-neon-blue);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-header p {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  color: var(--text-light);
}

/* Form Elements */
.form-group {
  margin-bottom: 25px;
}

.form-group label {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-white);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

select, input, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--accent-dark-blue);
  border-radius: 8px;
  background: var(--accent-dark-blue);
  color: var(--text-white);
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300F0FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 18px;
  padding-right: 50px;
}

select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-neon-blue);
  box-shadow: 0 0 8px var(--glow-blue);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Buttons */
button {
  background: linear-gradient(90deg, var(--accent-neon-blue), var(--accent-neon-pink));
  color: var(--text-white);
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

button:hover {
  background: linear-gradient(90deg, var(--accent-neon-pink), var(--accent-neon-blue));
  box-shadow: 0 0 15px var(--glow-blue);
}

button:active {
  transform: scale(0.98);
}

/* Loader */
.loader {
  display: none;
  width: 40px;
  height: 40px;
  margin: 20px auto;
  border: 4px solid rgba(0, 240, 255, 0.3);
  border-top: 4px solid var(--accent-neon-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Search Results */
#searchResults {
  margin-top: 30px;
  background: var(--accent-dark-blue);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid var(--accent-dark-blue);
  max-height: 400px;
  overflow-y: auto;
}

#searchResults::-webkit-scrollbar {
  width: 6px;
}

#searchResults::-webkit-scrollbar-track {
  background: var(--accent-dark-blue);
  border-radius: 3px;
}

#searchResults::-webkit-scrollbar-thumb {
  background: var(--accent-neon-blue);
  border-radius: 3px;
}

.result-item {
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

.result-item:hover {
  background: rgba(0, 240, 255, 0.1);
}

.result-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  color: var(--accent-neon-blue);
  font-weight: 500;
  margin-bottom: 8px;
}

.result-description {
  font-family: 'Roboto', sans-serif;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Charts in Analytics Section */
.chart-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.chart-wrapper {
  background: var(--accent-dark-blue);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px var(--shadow);
}

.chart-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  color: var(--text-white);
  margin-bottom: 20px;
  text-align: center;
}

/* Footer Section */
.footer {
  background: var(--card-bg);
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
}

.footer-content p {
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 5px 0;
}

.footer-content p:first-child::before {
  content: "\00a9"; /* Copyright symbol */
  margin-right: 5px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-stats {
    flex-direction: column;
    align-items: center;
  }
  .progress-container {
    flex-direction: column;
    align-items: center;
  }
  .progress-circle {
    width: 250px;
    height: 250px;
  }
  .progress-ring {
    width: 250px;
    height: 250px;
  }
  .progress-ring-circle {
    r: 115px;
    cx: 125px;
    cy: 125px;
  }
  .live-updates-box {
    width: 100%;
    max-width: 400px;
    height: 400px;
  }
}

@media (max-width: 768px) {
  .progress-circle {
    width: 200px;
    height: 200px;
  }
  .progress-ring {
    width: 200px;
    height: 200px;
  }
  .progress-ring-circle {
    r: 90px;
    cx: 100px;
    cy: 100px;
  }
  .progress-total {
    font-size: 2rem;
  }
  .breakdown-list {
    width: 200px;
  }
  .card {
    padding: 20px;
  }
  h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .progress-circle {
    width: 150px;
    height: 150px;
  }
  .progress-ring {
    width: 150px;
    height: 150px;
  }
  .progress-ring-circle {
    r: 65px;
    cx: 75px;
    cy: 75px;
  }
  .progress-total {
    font-size: 1.5rem;
  }
  .breakdown-list {
    width: 150px;
  }
  h2 {
    font-size: 1.5rem;
  }
  .section-header p {
    font-size: 0.9rem;
  }
}