html,
body {
  overflow-x: hidden;
  overflow-y: auto;
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.card-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 10px;
}

.card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: min(16000px, 95%);
  height: auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
  margin-top: 50px;
}

.card-header {
  padding: 15px 20px;
  text-align: center;
  position: relative;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.header-center {
  flex: 1 1 auto;
  min-width: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.top-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  row-gap: 12px;
  align-items: center;
  justify-content: flex-start;
  max-width: 100%;
}

.logout-btn {
  color: #dc3545;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #dc3545;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background-color: #dc3545;
  color: white;
}

.menu-link {
  color: #333;
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.menu-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #007bff;
}

.logo-container {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.logo {
  width: 100px;
  height: 100px;
  margin-left: 20px;
}

.header-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  color: #333;
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.card-content page-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  line-height: 1.2;
  width: 100%;
  background: linear-gradient(135deg, #3498db, #2980b9);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-content p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin: 0 0 15px 0;
}

.card-footer {
  padding: 10px 20px;
  text-align: center;
  font-size: 14px;
  color: #666;
}


.semester-switcher {
  margin-left: 20px;
}

.semester-switcher select {
  padding: 6px 12px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: white;
  transition: border-color .2s;
}

.semester-switcher select:hover {
  border-color: #999;
}

.card {
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
