:root {
  --primary-color: #3498db;
  --primary-hover: #2980b9;
  --secondary-color: #2c3e50;
  --secondary-hover: #34495e;
  --light-bg: #f8f9fa;
  --text-color: #2c3e50;
  --text-muted: #666;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--light-bg);
  color: var(--text-color);
  line-height: 1.6;
}

nav {
  background: var(--secondary-color);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  color: #fff;
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.login-btn {
  background: var(--primary-color);
  color: #fff;
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  font-weight: bold;
}

.login-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 2px 0;
  transition: 0.4s;
}

.container {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  margin-bottom: 4rem;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  transition: transform 0.3s ease;
}

.section:hover {
  transform: translateY(-5px);
}

.section-title {
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

#guide {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("book.jpg") center / cover no-repeat;
  padding: 4rem 2rem;
  color: white;
  border-radius: var(--border-radius);
  margin-bottom: 4rem;
}

#guide .section-title {
  color: white;
}

#guide .guide-section {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  padding: 2rem;
  border-radius: var(--border-radius);
}

#guide .guide-content {
  color: white;
  line-height: 1.6;
}

#guide .guide-content h3 {
  color: white;
  margin-bottom: 1rem;
}

#guide .button {
  background: var(--primary-color);
  border: 2px solid white;
  margin-top: 1rem;
}

#guide .button:hover {
  background: var(--primary-hover);
}

.exam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.exam-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform var(--transition);
  text-align: center;
}

.exam-card:hover {
  transform: translateY(-5px);
}

.exam-card h3 {
  color: var(--text-color);
  margin: 1rem 0;
}

.exam-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.card-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background var(--transition), transform var(--transition);
}

.button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.ticket-section {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
}

.ticket-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

footer {
  background: var(--secondary-color);
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .exam-grid {
    grid-template-columns: 1fr;
  }
}

.monitoring {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  width: 200px !important;
  height: 150px !important;
  background: transparent !important;
  border: 2px solid #ddd !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  z-index: 1000 !important;
}

.camera-check-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
