* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  color: #edf7ff;
  background:
    radial-gradient(circle at 15% 10%, rgba(62, 146, 255, 0.16), transparent 22%),
    radial-gradient(circle at 90% 25%, rgba(76, 255, 229, 0.12), transparent 18%),
    linear-gradient(115deg, #020613 0%, #04102b 45%, #02152e 100%);
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding: 26px;
  border: 1px solid rgba(113, 190, 255, 0.18);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(16, 26, 54, 0.9), rgba(8, 15, 35, 0.82));
  box-shadow: 0 18px 50px rgba(0,0,0,0.32);
}

.badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  color: #bdf8da;
  background: rgba(48, 155, 126, 0.14);
  border: 1px solid rgba(125,255,178,0.22);
  font-size: 13px;
}

h1, h2, p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

p {
  color: #98a9c7;
  max-width: 720px;
  line-height: 1.55;
}

.back-link {
  color: #8feeff;
  text-decoration: none;
  white-space: nowrap;
}

.admin-grid {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 20px;
}

.panel {
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(113, 190, 255, 0.16);
  background: linear-gradient(180deg, rgba(16, 26, 54, 0.88), rgba(8, 15, 35, 0.84));
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
}

label {
  display: block;
  margin-top: 14px;
  color: #b8c8e4;
  font-size: 14px;
}

input,
select {
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(113, 190, 255, 0.18);
  background: rgba(4, 12, 28, 0.9);
  color: #fff;
  outline: none;
}

button {
  border: 1px solid rgba(113, 232, 255, 0.26);
  border-radius: 15px;
  padding: 13px 16px;
  color: #062036;
  background: linear-gradient(180deg, rgba(109, 236, 255, 0.95), rgba(89, 196, 255, 0.95));
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  transform: translateY(-1px);
}

.upload-panel button {
  width: 100%;
  margin-top: 18px;
}

.status-text {
  margin-top: 14px;
  color: #8fffe0;
  font-size: 14px;
  min-height: 20px;
}

.list-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.calls-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 610px;
  overflow-y: auto;
  padding-right: 8px;
}

.call-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(113, 190, 255, 0.13);
  background: rgba(255,255,255,0.04);
}

.call-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-weight: 800;
}

.call-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  color: #98a9c7;
  font-size: 13px;
}

.status-pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #dff8ff;
  background: rgba(103,233,255,0.10);
  border: 1px solid rgba(113,232,255,0.20);
  white-space: nowrap;
}

.process-btn {
  margin-top: 12px;
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.empty {
  color: #98a9c7;
  padding: 18px;
  border: 1px dashed rgba(113, 190, 255, 0.22);
  border-radius: 18px;
}

@media (max-width: 900px) {
  .admin-hero,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-hero {
    flex-direction: column;
  }
}


.list-panel {
  max-height: 720px;
  overflow: hidden;
}

.calls-list::-webkit-scrollbar {
  width: 8px;
}

.calls-list::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
}

.calls-list::-webkit-scrollbar-thumb {
  background: rgba(103, 233, 255, 0.35);
  border-radius: 999px;
}

.bulk-actions {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(10, 18, 42, 0.96);
  border: 1px solid rgba(113, 190, 255, 0.16);
  backdrop-filter: blur(8px);
}

.select-all-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #dff6ff;
  font-size: 14px;
  font-weight: 700;
}

.call-card {
  position: relative;
  padding: 18px 18px 16px;
}

.call-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  margin-bottom: 14px;
}

.call-check-title {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-width: 0;
}

.call-name {
  display: block;
  color: #f4fbff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  word-break: break-word;
}

.call-checkbox,
#selectAllCalls {
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: #67e9ff;
  cursor: pointer;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  max-width: 140px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.call-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 18px;
  margin-bottom: 12px;
  color: #aabbd8;
  font-size: 13px;
  line-height: 1.35;
}

.call-meta div {
  min-width: 0;
  word-break: break-word;
}

.call-meta strong {
  color: #d8ecff;
}

.call-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.process-btn,
.delete-call-btn,
.admin-btn.danger {
  min-height: 36px;
  border-radius: 13px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.process-btn {
  border: 1px solid rgba(113, 190, 255, 0.28);
  background: rgba(255,255,255,0.05);
  color: #f4fbff;
}

.process-btn:disabled {
  opacity: 0.9;
  cursor: default;
}

.delete-call-btn,
.admin-btn.danger {
  border: 1px solid rgba(255, 126, 148, 0.42);
  background: rgba(130, 45, 58, 0.62);
  color: #fff;
}

.delete-call-btn:hover,
.admin-btn.danger:hover {
  border-color: rgba(255, 126, 148, 0.72);
  box-shadow: 0 0 18px rgba(255, 95, 120, 0.18);
}

@media (max-width: 900px) {
  .list-panel {
    max-height: none;
  }

  .calls-list {
    max-height: none;
    overflow: visible;
  }

  .call-card-head {
    grid-template-columns: 1fr;
  }

  .status-pill {
    width: fit-content;
  }

  .call-meta {
    grid-template-columns: 1fr;
  }
}