/* Sentences Admin Panel Styles */

.sentences-admin {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.sentences-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e0e0e0;
}

.sentences-header h1 {
  margin: 0;
  font-size: 2rem;
  color: #333;
}

.action-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #007bff;
  color: white;
}

.btn-primary:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #545b62;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Stats Container */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  border-left: 4px solid;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.stat-total {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-left-color: #667eea;
}

.stat-complete {
  background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
  border-left-color: #28a745;
}

.stat-missing-all {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  border-left-color: #dc3545;
}

.stat-partial {
  background: linear-gradient(135deg, #ffa751 0%, #ffe259 100%);
  border-left-color: #ffc107;
}

.stat-translated {
  background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
  border-left-color: #28a745;
}

.stat-untranslated {
  background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
  border-left-color: #dc3545;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.95;
}

.stat-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  opacity: 0.7;
}

/* Sentences List */
.sentences-list {
  margin-top: 3rem;
}

.sentences-list h2 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e0e0e0;
}

.sentences-table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.sentences-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.sentences-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sentences-table tbody tr {
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.2s ease;
}

.sentences-table tbody tr:hover {
  background-color: #f8f9fa;
}

.sentences-table td {
  padding: 1rem;
  font-size: 0.95rem;
}

.content-cell {
  font-weight: 500;
  color: #333;
  max-width: 300px;
  word-break: break-word;
}

.status-cell {
  text-align: center;
}

.audio-cell {
  text-align: center;
}

.translation-cell {
  text-align: center;
}

.actions-cell {
  text-align: center;
}

/* Row Status Styling */
.sentence-row.status-complete {
  background-color: rgba(132, 250, 176, 0.05);
}

.sentence-row.status-missing-all {
  background-color: rgba(250, 112, 154, 0.05);
}

.sentence-row.status-partial {
  background-color: rgba(255, 167, 81, 0.05);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  min-width: 80px;
  white-space: nowrap;
}

.badge-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.badge-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.badge-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
}

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

.status-badge.badge-danger {
  background-color: #f8d7da;
  color: #721c24;
}

.status-badge.badge-warning {
  background-color: #fff3cd;
  color: #856404;
}

/* Action Links */
.action-link {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  margin: 0 0.25rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  background-color: #e9ecef;
  color: #495057;
  border: 1px solid #dee2e6;
}

.action-link:hover {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

.action-link.delete:hover {
  background-color: #dc3545;
  border-color: #dc3545;
  box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

.action-link.action-generate {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
}

.action-link.action-generate:hover {
  background-color: #28a745;
  border-color: #28a745;
  box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.actions-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .sentences-table {
    font-size: 0.9rem;
  }

  .sentences-table th,
  .sentences-table td {
    padding: 0.75rem;
  }
}

@media (max-width: 768px) {
  .sentences-admin {
    padding: 1rem;
  }

  .sentences-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .action-buttons {
    width: 100%;
  }

  .btn {
    flex: 1;
    text-align: center;
  }

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

  .sentences-table {
    font-size: 0.85rem;
    display: block;
    overflow-x: auto;
  }

  .sentences-table thead,
  .sentences-table tbody,
  .sentences-table th,
  .sentences-table td,
  .sentences-table tr {
    display: block;
  }

  .sentences-table thead {
    display: none;
  }

  .sentences-table tbody tr {
    margin-bottom: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
  }

  .sentences-table td {
    padding-left: 40%;
    position: relative;
    text-align: right;
    border: none;
    border-bottom: 1px solid #eee;
  }

  .sentences-table td:before {
    content: attr(data-label);
    position: absolute;
    left: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
  }

  .content-cell {
    max-width: 100%;
  }
}
