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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: #2c3e50;
  min-height: 100vh;
}

.container {
  display: flex;
  height: 100vh;
  background: white;
}

.sidebar {
  width: 280px;
  background: linear-gradient(180deg, #0b3d6b 0%, #082a4d 100%);
  color: white;
  padding: 0;
  overflow-y: auto;
  box-shadow: 4px 0 15px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  font-size: 24px;
  font-weight: 800;
  padding: 25px 20px;
  text-align: center;
  border-bottom: 2px solid #f7941d;
  background: rgba(0,0,0,0.2);
  letter-spacing: -0.5px;
}

.sidebar-logo span {
  color: #f7941d;
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-top: 5px;
  letter-spacing: 1px;
}

.sidebar-menu {
  list-style: none;
  flex: 1;
  padding: 20px 0;
}

.sidebar-menu li {
  margin: 0;
}

.sidebar-menu button {
  width: 100%;
  padding: 14px 20px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  text-align: left;
  cursor: pointer;
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-menu button:hover {
  background-color: rgba(255,255,255,0.1);
  color: #f7941d;
  border-left-color: #f7941d;
}

.sidebar-menu button.active {
  background-color: rgba(247, 148, 29, 0.2);
  color: #f7941d;
  border-left-color: #f7941d;
  font-weight: 600;
}

.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 40px;
  background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

.section {
  display: none;
  animation: slideIn 0.4s ease-out;
}

.section.active {
  display: block;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  font-size: 32px;
  margin-bottom: 30px;
  color: #0b3d6b;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 15px;
}

.section-title::before {
  content: '';
  width: 5px;
  height: 35px;
  background: linear-gradient(to bottom, #0b3d6b, #f7941d);
  border-radius: 3px;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, #0b3d6b 0%, #082a4d 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(11, 61, 107, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 61, 107, 0.4);
}

.btn-orange {
  background: linear-gradient(135deg, #f7941d 0%, #e0820a 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(247, 148, 29, 0.3);
}

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(247, 148, 29, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

.btn-small {
  padding: 8px 14px;
  font-size: 12px;
  border-radius: 6px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #0b3d6b;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e0e7ff;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #f7941d;
  box-shadow: 0 0 0 4px rgba(247, 148, 29, 0.1);
  background: rgba(247, 148, 29, 0.02);
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.table th {
  background: linear-gradient(to right, #f8f9fa, #f0f3ff);
  padding: 14px;
  text-align: left;
  font-weight: 700;
  color: #0b3d6b;
  border-bottom: 2px solid #e0e7ff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table td {
  padding: 14px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.table tbody tr {
  transition: all 0.2s ease;
}

.table tbody tr:hover {
  background: linear-gradient(to right, #f8f9ff, #fff);
}

.table-actions {
  display: flex;
  gap: 8px;
}

.empty-state {
  text-align: center;
  padding: 60px 40px;
  color: #95a3b3;
  font-size: 16px;
}

.empty-state svg {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  opacity: 0.3;
}

.alert {
  padding: 15px 18px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 14px;
  border-left: 4px solid;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border-left-color: #dc2626;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
  border-left-color: #22c55e;
}

.alert-info {
  background: #dbeafe;
  color: #1e40af;
  border-left-color: #3b82f6;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  margin: 20px 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0b3d6b, #f7941d);
  transition: width 0.4s ease;
  border-radius: 10px;
}

.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;
  backdrop-filter: blur(4px);
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 35px;
  border-radius: 16px;
  max-width: 550px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #0b3d6b;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 25px;
}

.sending-status {
  background: linear-gradient(to bottom, #f8f9ff, #ffffff);
  padding: 18px;
  border-radius: 10px;
  margin: 20px 0;
  border: 1px solid #e0e7ff;
}

.sending-status .status-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.sending-status .status-item:last-child {
  border-bottom: none;
}

.countdown {
  font-size: 48px;
  font-weight: 800;
  color: #f7941d;
  text-align: center;
  padding: 30px;
  text-shadow: 0 2px 4px rgba(247, 148, 29, 0.2);
}

.tabs {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 30px;
}

.tab-btn {
  padding: 12px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: #95a3b3;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tab-btn:hover {
  color: #0b3d6b;
}

.tab-btn.active {
  color: #0b3d6b;
  border-bottom-color: #f7941d;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: linear-gradient(135deg, #0b3d6b 0%, #082a4d 100%);
  color: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(11, 61, 107, 0.2);
}

.stat-card.orange {
  background: linear-gradient(135deg, #f7941d 0%, #e0820a 100%);
  box-shadow: 0 4px 12px rgba(247, 148, 29, 0.2);
}

.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
}

/* Checkboxes */
input[type="checkbox"] {
  cursor: pointer;
  width: 20px;
  height: 20px;
  margin: 0 10px 0 0;
  vertical-align: middle;
  accent-color: #f7941d;
}

label {
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 8px 0;
  user-select: none;
}

label:hover {
  background: rgba(247, 148, 29, 0.05);
  padding-left: 10px;
  padding-right: 10px;
  margin: 0 -10px;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    padding: 0;
  }

  .sidebar-logo {
    padding: 15px 20px;
    border-bottom: none;
    border-right: 2px solid #f7941d;
    min-width: 200px;
  }

  .sidebar-menu {
    display: flex;
    flex: 1;
    padding: 0;
  }

  .sidebar-menu li {
    flex: 1;
  }

  .sidebar-menu button {
    padding: 12px 10px;
    font-size: 12px;
    justify-content: center;
  }

  .main-content {
    padding: 20px;
  }

  .section-title {
    font-size: 24px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}
