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

.home-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0 30px;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.left-sidebar {
  flex: 0 0 300px;
  max-width: calc(100vw - 60px);
  min-height: 400px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: fit-content;
  z-index: 10;
  overflow-y: auto;
}

.center-content {
  flex: 1;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  color: black;
  z-index: 1;
  overflow-y: auto;
  box-sizing: border-box;
}

.right-sidebar {
  flex: 0 0 300px;
  max-width: calc(100vw - 60px);
  min-height: 400px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: fit-content;
  z-index: 10;
  overflow-y: auto;
}

.user-info-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
  display: block;
  border: 3px solid rgba(255, 255, 255, 0.3);
}
.user-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: black;
  text-align: center;
  margin-bottom: 10px;
}
.user-property {
  color: black;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 10px;
  opacity: 0.8;
}

.user-type-badge {
  text-align: center;
  margin-top: 10px;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 12px;
  text-transform: uppercase;
}

.badge.user {
  background-color: #d4edda;
  color: #155724;
}

.badge.student {
  background-color: #d1ecf1;
  color: #0c5460;
}
.user-actions {
  margin-top: 15px;
  text-align: center;
}
.user-actions .action-button {
  width: 100%;
  padding: 10px 15px;
  font-size: 0.9rem;
  max-width: 200px;
  margin: 0 auto;
}

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.action-button {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: black;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
  backdrop-filter: blur(5px);
  display: block;
  margin-bottom: 10px;
}
.action-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: black;
}

.stats-section {
  margin-top: 20px;
}
.stats-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: black;
  margin-bottom: 15px;
  text-align: center;
}
.stat-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 10px;
  text-align: center;
}
.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: black;
  display: block;
}
.stat-label {
  font-size: 0.9rem;
  color: black;
  margin-top: 5px;
}

.recent-activity {
  margin-top: 20px;
}
.activity-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: black;
  margin-bottom: 15px;
  text-align: center;
}
.activity-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: black;
}

.actions-section {
  margin-top: 20px;
}
.actions-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: black;
  margin-bottom: 15px;
  text-align: center;
}
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.action-buttons .action-button {
  margin-bottom: 0;
}

.student-info {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-item {
  margin-bottom: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: black;
}

.info-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.info-item strong {
  font-weight: 600;
  margin-right: 8px;
}

.certificates-list,
.studentdata-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 300px;
}
.action-group {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
  background-color: #f8f9fa;
}

.action-group-title {
  font-size: 14px;
  font-weight: bold;
  color: #495057;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dee2e6;
}

.action-button-medical {
  background-color: #28a745 !important;
  color: white !important;
}

.action-button-medical:hover {
  background-color: #218838 !important;
  transform: scale(1.02);
}
.action-button-points {
  background-color: #007bff !important;
  color: white !important;
}
.action-button-points:hover {
  background-color: #0056b3 !important;
}

.action-button-signup {
  background-color: #28a745 !important;
  color: white !important;
}

.action-button-signup:hover {
  background-color: #218838 !important;
  transform: scale(1.02);
}

.action-button-unsign {
  background-color: #dc3545 !important;
  color: white !important;
}

.action-button-unsign:hover {
  background-color: #c82333 !important;
  transform: scale(1.02);
}

.action-info {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.certificates-section {
  margin-top: 20px;
}
.section-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}
.certificates-list,
.studentdata-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 300px;
}
.info-card {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 15px 20px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.collapsible-section {
  margin-top: 20px;
}
.section-header{
  display:flex;align-items:center;cursor:pointer;gap:8px;
}
.toggle-arrow{transition:transform .2s ease;}
.collapsible-section.open .toggle-arrow{transform:rotate(90deg);}
.section-content{display:none;}
.collapsible-section.open .section-content{display:flex;}
.cert-header {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 10px 20px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #495057;
}
.cert-file {
  color: #007bff;
  text-decoration: none;
}
.cert-file:hover {
  text-decoration: underline;
}
.cert-meta {
  margin-top: 8px;
  font-size: 12px;
  color: #6c757d;
}

.active-card { border-left: 4px solid #28a745; }
.inactive-card { border-left: 4px solid #dc3545; }
