#rakatView.tab-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.rakat-container {
  flex: 1;
  padding: 24px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rakat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.rakat-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rakat-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: #1f2937;
}

.dark-mode .rakat-icon {
  color: #e5e7eb;
}

.rakat-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #166534;
}

.dark-mode .rakat-title {
  color: #4ade80;
}

.rakat-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.rakat-legend-item {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

.rakat-legend-farz {
  background: #fecaca;
  color: #991b1b;
}

.dark-mode .rakat-legend-farz {
  background: #7f1d1d;
  color: #fecaca;
}

.rakat-legend-muakkadah {
  background: #bbf7d0;
  color: #166534;
}

.dark-mode .rakat-legend-muakkadah {
  background: #14532d;
  color: #bbf7d0;
}

.rakat-legend-waajib {
  background: #bae6fd;
  color: #0369a1;
}

.dark-mode .rakat-legend-waajib {
  background: #0c4a6e;
  color: #bae6fd;
}

.rakat-table-wrap {
  width: 100%;
  max-width: 720px;
}

.rakat-table-wrap.shake {
  animation: rakat-shake 0.5s ease-in-out;
}

@keyframes rakat-shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-8px); }
  30% { transform: translateX(8px); }
  45% { transform: translateX(-6px); }
  60% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
}

.rakat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dark-mode .rakat-table {
  background: #1f2937;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.rakat-table th,
.rakat-table td {
  border: 1px solid #e5e7eb;
  padding: 8px 6px;
  text-align: center;
}

.dark-mode .rakat-table th,
.dark-mode .rakat-table td {
  border-color: #374151;
}

.rakat-table thead th {
  font-weight: 700;
  color: #374151;
  background: #f9fafb;
}

.dark-mode .rakat-table thead th {
  color: #e5e7eb;
  background: #111827;
}

.rakat-table thead th.rakat-col-farz {
  background: #fecaca;
  color: #991b1b;
}

.dark-mode .rakat-table thead th.rakat-col-farz {
  background: #7f1d1d;
  color: #fecaca;
}

.rakat-table thead th.rakat-col-total {
  color: #dc2626;
}

.dark-mode .rakat-table thead th.rakat-col-total {
  color: #f87171;
}

.rakat-table tbody th {
  font-weight: 600;
  color: #1f2937;
  background: #f9fafb;
  text-align: left;
  padding-left: 12px;
}

.dark-mode .rakat-table tbody th {
  color: #e5e7eb;
  background: #111827;
}

.rakat-table td.rakat-cell-farz {
  background: #fef2f2;
}

.dark-mode .rakat-table td.rakat-cell-farz {
  background: #450a0a;
}

.rakat-table td.rakat-cell-muakkadah {
  background: #f0fdf4;
}

.dark-mode .rakat-table td.rakat-cell-muakkadah {
  background: #052e16;
}

.rakat-table td.rakat-cell-waajib {
  background: #f0f9ff;
}

.dark-mode .rakat-table td.rakat-cell-waajib {
  background: #0c4a6e;
}

.rakat-table td.rakat-cell-total {
  font-weight: 700;
  color: #15803d;
  background: #ffffff;
}

.dark-mode .rakat-table td.rakat-cell-total {
  color: #4ade80;
  background: #1f2937;
}

.rakat-input {
  width: 100%;
  min-width: 0;
  max-width: 3.5ch;
  padding: 6px 2px;
  border: none;
  border-radius: 0;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  background: transparent;
  color: inherit;
  box-sizing: border-box;
}

.rakat-input:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px #3b82f6;
}

.rakat-input::placeholder {
  color: #9ca3af;
}

.dark-mode .rakat-input::placeholder {
  color: #6b7280;
}

.rakat-input.locked {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}

.dark-mode .rakat-input.locked {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.dark-mode .rakat-input:focus {
  box-shadow: inset 0 0 0 1px #60a5fa;
}

.rakat-total-value {
  font-weight: 700;
  color: #15803d;
}

.dark-mode .rakat-total-value {
  color: #4ade80;
}

.rakat-correct-message {
  margin-top: 24px;
  font-size: 2.5rem;
  font-weight: 800;
  color: #15803d;
  text-align: center;
  letter-spacing: 0.05em;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dark-mode .rakat-correct-message {
  color: #4ade80;
}
