/* ===== Google Font: Tajawal ===== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');


/* ================================
   Cyber Emerald Theme
================================ */

:root {

  /* اللون الأساسي */
  --primary: #059669;
  --primary-dark: #047857;
  --primary-light: #10b981;

  /* درجات الزمردي */
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --emerald-900: #064e3b;

  /* الخلفيات */
  --bg-main: #f0fdf4;
  --bg-card: #ffffff;

  /* النصوص */
  --text-main: #064e3b;
  --text-soft: #047857;

  /* الحدود */
  --border-soft: #d1fae5;

}

:root {
  --brand-primary: #0f172a;
  --brand-secondary: #334155;
  --brand-accent: #10b981;
  --brand-accent-2: #22c55e;
  --brand-accent-3: #84cc16;
  --brand-accent-4: #a3e635;

  --brand-bg: #f8fafc;
  --brand-card: #ffffff;
  --brand-border: #e2e8f0;
  --brand-text: #0f172a;
  --brand-muted: #64748b;

  --brand-success: #16a34a;
  --brand-danger: #dc2626;
  --brand-warning: #f59e0b;
  --brand-info: #0891b2;

  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
}

/* ===== Base ===== */
html {
  direction: rtl;
}

body {
  background: linear-gradient(
    180deg,
    #ecfdf5);
  color: var(--brand-text);
  font-family: "Tajawal", sans-serif;
  font-weight: 500;
  font-style: normal;
  line-height: 1.7;

  /* مهم لإظهار الأرقام 0-9 بشكل موحد */
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* توحيد الخط لكل العناصر */
*,
*::before,
*::after,
input,
button,
select,
textarea,
table,
th,
td,
a,
label,
span,
div,
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Tajawal", sans-serif !important;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

/* تحسين عرض الأرقام الإنجليزية داخل النصوص العربية */
[dir="rtl"] .latin-numbers,
[dir="rtl"] .num-ltr {
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
}

/* ===== Tajawal utility classes ===== */
.tajawal-extralight {
  font-family: "Tajawal", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.tajawal-light {
  font-family: "Tajawal", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.tajawal-regular {
  font-family: "Tajawal", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.tajawal-medium {
  font-family: "Tajawal", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.tajawal-bold {
  font-family: "Tajawal", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.tajawal-extrabold {
  font-family: "Tajawal", sans-serif;
  font-weight: 800;
  font-style: normal;
}

.tajawal-black {
  font-family: "Tajawal", sans-serif;
  font-weight: 900;
  font-style: normal;
}

/* ===== Layout ===== */
.app-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}

.app-grid {
  display: grid;
  gap: 24px;
}

.app-card{
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.app-section {
  padding: 24px;
}

.app-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-text);
  line-height: 1.3;
}

.app-subtitle {
  color: var(--brand-muted);
  margin-top: 6px;
  font-weight: 500;
}

/* ===== Buttons ===== */
.app-btn-primary{

  background: linear-gradient(
    135deg,
    var(--emerald-600),
    var(--emerald-500)
  );

  color: white;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
  transition: all .25s ease;

}

.app-btn-primary:hover{

  background: linear-gradient(
    135deg,
    var(--emerald-700),
    var(--emerald-600)
  );

  transform: translateY(-1px);

}

.app-btn-secondary {
  background: white;
  color: var(--brand-text);
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 700;
  transition: 0.2s ease;
}

.app-btn-secondary:hover {
  background: #f8fafc;
}

/* ===== Badges ===== */
.app-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
}

.app-badge-dark {
  background: #e2e8f0;
  color: #0f172a;
}

.app-badge-success {
  background: #dcfce7;
  color: #166534;
}

.app-badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.app-badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.app-badge-info {
  background: #cffafe;
  color: #155e75;
}

/* ===== Topbar ===== */
.app-topbar {
  background: white;
  border-bottom: 2px solid #d1fae5;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.app-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ===== Empty state ===== */
.app-empty {
  border: 1px dashed var(--brand-border);
  border-radius: 24px;
  background: white;
  padding: 40px;
  text-align: center;
  color: var(--brand-muted);
}

/* ===== Forms ===== */
input,
select,
textarea {
  font-family: "Tajawal", sans-serif !important;
  font-weight: 500;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

/* ===== Tables ===== */
table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: right;
  vertical-align: middle;
}

/* ===== Progress ===== */
.app-progress-track {
  width: 100%;
  height: 14px;
  border-radius: 9999px;
  background: #e2e8f0;
  overflow: hidden;
}

.progress-bar{
  background: linear-gradient(
    90deg,
    #10b981,
    #34d399
  );
}

/* ===== Print / Export visual ===== */
.print-report,
.export-report {
  font-family: "Tajawal", sans-serif !important;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .app-shell {
    padding: 16px;
  }

  .app-title {
    font-size: 1.35rem;
  }

  .app-section {
    padding: 18px;
  }

  .app-topbar-inner {
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
  }
}

.metric-number{
  color: var(--emerald-700);
  font-weight: 800;
}





/* =========================================
   Phishing Reports Layout Fix
========================================= */

.reports-section-wrap {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

.reports-two-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .reports-two-cards {
    grid-template-columns: 1fr;
  }
}

.reports-stat-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.reports-stat-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.reports-stat-item {
  border: 1px solid #dbe4ee;
  border-radius: 1rem;
  background: #f8fafc;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: right;
}

.reports-stat-item-title {
  font-weight: 700;
  color: #0f172a;
  line-height: 1.7;
}

.reports-stat-item-subtitle {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.reports-table-wrap {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.reports-table {
  width: 100%;
  min-width: 1400px;
  border-collapse: separate;
  border-spacing: 0;
}

.reports-table th,
.reports-table td {
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.reports-table thead th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  z-index: 1;
}

.reports-table-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.reports-table-meta {
  font-size: 0.875rem;
  color: #64748b;
}

.reports-block-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1rem;
}