/* RTL בסיסי */
html, body {
  margin: 0;
  padding: 0;
  font-family: "Alef", "Heebo", "Arial", sans-serif;
  direction: rtl;
  background: #f4f6fb;
}

.page-container {
  min-height: 100vh;
}

/* טופ בר */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: linear-gradient(90deg, #0b3c63, #195b93);
  color: #fff;
}

.top-bar-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-logo-text {
  font-size: 20px;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 13px;
  opacity: 0.9;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.top-bar-right .divider {
  opacity: 0.7;
}

/* כפתורים */
.btn {
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  white-space: nowrap;
}

.btn-primary {
  background: #1d6fd8;
  color: #fff;
}

.btn-primary:hover {
  background: #1758aa;
}

.btn-secondary {
  background: #ffffff;
  color: #1d6fd8;
  border: 1px solid #c7d5f2;
}

.btn-secondary:hover {
  background: #f5f8ff;
}

.btn-outline {
  background: transparent;
  color: #1d6fd8;
  border: 1px solid #1d6fd8;
}

.btn-outline:disabled {
  opacity: 0.5;
  cursor: default;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
}

.btn-full {
  width: 100%;
}

/* תוכן מרכזי */
.content {
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* כרטיסים */
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(15, 35, 80, 0.08);
  padding: 24px 24px 28px;
}

.card-login {
  max-width: 420px;
  margin: 0 auto;
}

.card-calls {
  width: 100%;
}

.card-title {
  margin: 0 0 4px;
  font-size: 20px;
}

.card-subtitle {
  margin: 0 0 16px;
  font-size: 14px;
  color: #6b7280;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* טפסים */
.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-label {
  font-size: 14px;
  color: #374151;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.input, .select {
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 8px 10px;
  font-size: 14px;
  outline: none;
}

.input:focus, .select:focus {
  border-color: #1d6fd8;
  box-shadow: 0 0 0 1px rgba(29,111,216,0.15);
}

.form-error {
  margin-top: 4px;
  font-size: 13px;
  color: #b91c1c;
}

/* טבלת שיחות */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table thead {
  background: #f3f4f6;
}

.table th,
.table td {
  padding: 8px 10px;
  text-align: right;
  border-bottom: 1px solid #e5e7eb;
}

.table th {
  font-weight: 600;
  color: #374151;
}

.table tr:nth-child(even) td {
  background: #fafafa;
}

.table tr:hover td {
  background: #eef3ff;
}

.text-muted {
  color: #9ca3af;
}

/* הודעת מערכת */
.system-message {
  max-width: 1200px;
  margin: 12px auto 0;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
}

.system-message-info {
  background: #e0ecff;
  color: #1d4ed8;
}

.system-message-error {
  background: #fee2e2;
  color: #b91c1c;
}

/* מצב ריק */
.empty-state {
  margin-top: 12px;
  font-size: 14px;
  color: #6b7280;
}

/* רספונסיביות */
@media (max-width: 768px) {
  .card-calls {
    padding: 16px;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
