* {
  margin: 0;
  padding: 0;

}

body {
  background-color: #f1f2f3;

}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1600px;
  min-width: 1240px;
  margin: 30px auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  color: #333;
}
.container *{
  box-sizing: border-box;
}

header {
  box-sizing: border-box;
  width: 100%;
  max-width: 1600px;
  min-width: 1240px;
  margin: 20px auto;
  text-align: center;
  color: #333;
}

header h1 {
  font-size: 30px;
  margin-bottom: 5px;
}

header p {
  font-size: 14px;
  color: #636e72;
  max-width: 95%;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.9;
}

/* 左侧控制面板 */
.control-panel {
  width: 320px;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  padding: 20px;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
}

.settings-group {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 20px 15px;
  margin-bottom: 20px;
  padding-bottom: 0;
}

.setting-item {
  margin-bottom: 20px;
}

.setting-item label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.setting-item input,
.setting-item select {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
}

.setting-item input[type="color"]{
  min-height: 35px;
  padding: 5px 10px;
}

.setting-item input[type="file"]{
  padding: 6px 10px;
}

.color-picker {
  display: flex;
  align-items: center;
}

.color-preview {
  width: 35px;
  height: 35px;
  border-radius: 6px;
  margin-left: 10px;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.checkbox-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.checkbox-item input {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

.checkbox-item label {
  margin: 0;
  font-size: 14px;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.btn {
  flex: 1;
  min-width: 120px;
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn svg {
  margin-right: 8px;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-primary {
  background: #ff6b6b;
}

.btn-primary:hover {
  background: #ff5252;
}

/* 右侧主要内容 */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

/* 点名区域 */
.roll-call-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.name-display {
  width: 100%;
  height: 430px;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
  cursor: pointer;
  //transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.name-display:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.name-display::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 1;
}

.name-display .name {
  position: relative;
  z-index: 2;
  font-weight: bold;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 20px;
  user-select: none;
}

.name-display.running {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
  }
}

/* 名单区域 */
.lists-container {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}

.list-box {
  flex: 1;
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  min-height: 350px;
}

.list-title {
  font-size: 18px;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid #f1f2f6;
  display: flex;
  align-items: center;
}

.list-title svg {
  margin-right: 10px;
}

.name-list {
  list-style: none;
  min-height: 150px;
}

.name-list li {
  padding: 12px 15px;
  margin: 8px 0;
  background: #f8f9fa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.name-list li:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.name-list li:before {
  content: '👉';
  margin-right: 10px;
}

.name-list li.selected {
  background: #d0ebff;
  font-weight: bold;
}

.name-list li.selected:before {
  content: '🎯';
}

/* 模态框 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 600px;
  max-width: 90%;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

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

.modal-title {
  font-size: 24px;
  color: #2d3436;
}

.close-modal {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #636e72;
}

.textarea-container textarea {
  width: 100%;
  height: 250px;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 16px;
  resize: vertical;
  box-sizing: border-box;
}

.modal-footer {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.modal-footer button{
  padding: 15px 50px;
}

.btn-modal {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
}

.btn-cancel {
  background: #bcbdbe;
}

.btn-confirm {
  background: #4dabf7;
  color: white;
}

.group-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.group-selector select {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.group-selector button {
  padding: 10px 15px;
  background: #4dabf7;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.list-scroll-container {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 5px;
  margin-top: 10px;
}

.group-management {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.group-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.group-selector select {
  flex: 2;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.group-actions {
  display: flex;
  gap: 10px;
  flex: 3;
}

.btn-modal {
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: white;
  transition: all 0.2s;
}

.btn-modal:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* 通知样式 */
.notice {
  position: relative;
  top: 40px;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  color: white;
  background-color: #ff6b6b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.3s, fadeOut 0.5s 2.5s forwards;
  max-width: 300px;
  display: flex;
  align-items: center;
}

.notice.success {
  background-color: #51cf66;
}

.notice.info {
  background-color: #4dabf7;
}

.notice.warning {
  background-color: #fcc419;
}

.notice.error {
  background-color: #ff6b6b;
}

.notice svg {
  margin-right: 10px;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

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

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}
