:root {
  --primary-color: #1f736d;
  --secondary-color: #0d53a0;
  --bg-color: #f0f4f4;
  --card-bg: #ffffff;
  --text-main: #2d3436;
  --text-muted: #636e72;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --info-bg: #e8f1f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--bg-color);
  background-image: radial-gradient(
    var(--primary-color) 0.5px,
    transparent 0.5px
  );
  background-size: 24px 24px;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 600px;
  background: var(--card-bg);
  padding: 40px 30px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--primary-color);
  animation: fadeIn 0.5s ease-out;
}

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

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

.header-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-color);
  margin: 0 auto 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 8px 15px rgba(31, 115, 109, 0.2);
}

h1 {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 8px;
  text-align: center;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 30px;
  text-align: center;
}

.searchBox {
  width: 100%;
  margin-bottom: 10px;
}

.form-group {
  position: relative;
  margin-bottom: 15px;
}

input[type="number"],input[type="text"] {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e0e6e6;
  border-radius: 14px;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
  background: #fdfdfd;
  margin-bottom: 10px;
}

input[type="number"]:focus,,input[type="text"]:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(31, 115, 109, 0.1);
}

input[type="submit"] {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: var(--secondary-color);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

input[type="submit"]:hover {
  background: #09417d;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(13, 83, 160, 0.3);
}

.infoCon {
  margin-top: 25px;
  padding: 25px;
  background: var(--info-bg);
  border-radius: 18px;
  text-align: center;
}

.studentName {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 5px;
}

.studentIDCon {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.studentIDCon span {
  color: var(--secondary-color);
  font-weight: 700;
}

.videoLinks {
  display: grid;
  gap: 12px;
}

.videolink {
  display: block;
  padding: 14px;
  background: #ffffff;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  border: 1.5px solid rgba(31, 115, 109, 0.2);
  transition: var(--transition);
}

.videolink:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  transform: scale(1.02);
}

.btn-reset {
  display: inline-block;
  margin-top: 25px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.btn-reset:hover {
  color: var(--secondary-color);
}

footer {
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 480px) {
  .container {
    padding: 30px 20px;
  }

  h1 {
    font-size: 1.3rem;
  }
}

/* Player page  */
:root {
  --primary-color: #1f736d;
  --secondary-color: #0d53a0;
  --bg-color: #0f172a;
  --text-light: #f8fafc;
  /* Customize Plyr theme to match your primary color */
  --plyr-color-main: #1f736d;
}

body {
  background-color: var(--bg-color);
  color: var(--text-light);
  font-family: "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 10px;
}

.player-container {
  width: 100%;
  max-width: 900px;
  background: #1e293b;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

/* Plyr specific border radius fix */
.plyr--video {
  border-radius: 8px;
}

.controls {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-back {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-download {
  background: var(--primary-color);
  color: #fff;
}

.btn-download:hover {
  background: #288f88;
  box-shadow: 0 4px 12px rgba(31, 115, 109, 0.3);
}

.error-msg {
  text-align: center;
  padding: 60px 40px;
}

.error-msg h2 {
  color: #f87171;
  margin-bottom: 10px;
}

footer {
  margin-top: 40px;
  opacity: 0.7;
  font-size: 0.85rem;
}

footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
