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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  background: #1c1c1e;
  color: #f5f5f7;
  min-height: 100vh;
  overflow-x: hidden;
  transition: opacity 0.15s ease-in-out;
}

body.fade-in {
  opacity: 1;
}

body.fade-out {
  opacity: 0;
}

.app-container {
  display: flex;
  height: 100vh;
}

.custom-titlebar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 38px;
  background: rgba(28, 28, 30, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.titlebar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.titlebar-logo {
  width: 16px;
  height: 16px;
}

.titlebar-text {
  font-size: 13px;
  font-weight: 500;
  color: #86868B;
}

.titlebar-right {
  display: flex;
  gap: 8px;
}

.titlebar-button {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #86868B;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s;
}

.titlebar-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.titlebar-button.close-button:hover {
  background: #FF3B30;
  color: white;
}

.sidebar {
  width: 80px;
  background: rgba(44, 44, 46, 0.95);
  backdrop-filter: blur(20px);
  padding: 60px 12px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.glass-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.glass-radio-group input {
  display: none;
}

.glass-radio-group label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.glass-radio-group label span {
  font-size: 11px;
  color: #86868B;
  margin-top: 4px;
}

.glass-radio-group label::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.glass-radio-group label:hover::before {
  border-color: rgba(10, 132, 255, 0.3);
}

.glass-radio-group input:checked + label span {
  color: #0A84FF;
}

.glass-radio-group input:checked + label::before {
  border-color: rgba(10, 132, 255, 0.5);
  background: rgba(10, 132, 255, 0.1);
}

.glass-glider {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(10, 132, 255, 0.15);
  border: 1px solid rgba(10, 132, 255, 0.3);
  transition: all 0.3s ease;
  z-index: -1;
  display: none;
}

.main-content {
  flex: 1;
  padding: 58px 32px 32px;
  overflow-y: auto;
  min-height: 100vh;
}

.header {
  margin-bottom: 24px;
}

.header .logo {
  width: 48px;
  height: 48px;
  background: url('../StudyTrack-teacher/assets/icon.ico') center/contain no-repeat;
  margin-bottom: 16px;
}

.content h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.content > p {
  color: #86868B;
  font-size: 14px;
  margin-bottom: 24px;
}

.card {
  background: rgba(44, 44, 46, 0.95);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

button {
  padding: 10px 20px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.record-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.record-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.record-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.record-title {
  font-weight: 600;
  font-size: 15px;
}

.record-time {
  font-size: 12px;
  color: #86868B;
}

.record-info {
  font-size: 13px;
  color: #86868B;
  margin-top: 4px;
}

.record-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.record-actions button {
  padding: 6px 12px;
  font-size: 12px;
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  margin-left: 4px;
}

.status-excellent {
  background: rgba(48, 209, 88, 0.2);
  color: #30d158;
}

.status-good {
  background: rgba(10, 132, 255, 0.2);
  color: #0A84FF;
}

.status-average {
  background: rgba(255, 159, 10, 0.2);
  color: #ff9f0a;
}

.status-poor {
  background: rgba(255, 69, 58, 0.2);
  color: #ff453a;
}

.filters {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-item label {
  font-size: 12px;
  color: #86868B;
}

.filter-item select {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  font-size: 13px;
  outline: none;
  min-width: 120px;
}

.filter-item select:focus {
  border-color: #0A84FF;
}

.about-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: #FFFFFF;
  text-decoration: none;
  transition: all 0.3s ease;
}

.about-links a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.about-links a i {
  font-size: 20px;
  color: #0A84FF;
  width: 24px;
  text-align: center;
}

.about-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.about-card {
  text-align: center;
}

.about-card .version {
  color: #86868B;
  font-size: 14px;
  margin-bottom: 8px;
}

.about-card .copyright {
  color: #6e6e73;
  font-size: 12px;
}
