/* ===========================================================
🔷 TCN GENERAL UI STYLES (Global - All Pages)
Location: /assets/css/main.css
Fonts, Buttons, Badges, Headings, Links, Responsiveness, RTL Support
=========================================================== */

/* 🌐 Global Font Stack: Latin, Arabic, Chinese, etc. */
body,
.tcn-dashboard {
  font-family: 'Segoe UI', 'Manrope', 'Noto Sans', 'Noto Sans Arabic', 'Noto Sans SC', sans-serif;
  color: #222;
  line-height: 1.6;
}

/* 📦 Main Container Layout */
.tcn-dashboard {
  max-width: 960px;
  margin: auto;
  padding: 30px 20px;
}

/* 📝 Headings */
.tcn-dashboard h1,
.tcn-dashboard h2,
.tcn-dashboard h3 {
  font-weight: 600;
  margin-bottom: 0.5em;
  color: #1a202c;
}

/* 🔗 Hyperlinks */
.tcn-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}
.tcn-link:hover {
  text-decoration: underline;
}

/* 🧩 Reusable Buttons (Universal) */
.tcn-btn,
a.button,
a[class*="btn"] {
  background-color: #3b82f6;
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  transition: background-color 0.2s ease;
  margin-top: 10px;
  cursor: pointer;
  border: none;
}
.tcn-btn:hover,
a.button:hover,
a[class*="btn"]:hover {
  background-color: #2563eb;
}

/* 🖊️ Edit / 🗑️ Delete Quick Links */
a[href*="edit-request"],
a[href*="action=tcn_delete"] {
  display: inline-block;
  margin-right: 15px;
  margin-top: 10px;
  font-weight: 500;
  color: #e53e3e;
  text-decoration: none;
  transition: color 0.2s;
}
a[href*="edit-request"]:hover,
a[href*="action=tcn_delete"]:hover {
  color: #c53030;
}

/* 🏷️ Score Badges */
.tcn-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 9999px;
  font-weight: 600;
  color: white;
  font-size: 0.9rem;
}
.score-high {
  background-color: #38a169; /* Green */
}
.score-medium {
  background-color: #ed8936; /* Orange */
}
.score-low {
  background-color: #e53e3e; /* Red */
}

/* ============================
🎯 TCN ACTION BUTTONS (Consistent UI)
============================ */

.tcn-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 32px 0 40px;
  align-items: flex-start;
}

/* 🔘 Unified Button Variants */
.tcn-btn.primary {
  background-color: #3b82f6;
  color: #fff;
}
.tcn-btn.primary:hover {
  background-color: #2563eb;
}

.tcn-btn.secondary {
  background-color: #e2e8f0;
  color: #2d3748;
}
.tcn-btn.secondary:hover {
  background-color: #cbd5e0;
}

.tcn-btn.danger {
  background-color: #e53e3e;
  color: #fff;
}
.tcn-btn.danger:hover {
  background-color: #c53030;
}

.tcn-btn.light {
  background-color: #edf2f7;
  color: #4a5568;
}
.tcn-btn.light:hover {
  background-color: #e2e8f0;
}

.tcn-btn.success {
  background-color: #38a169;
  color: #fff;
}
.tcn-btn.success:hover {
  background-color: #2f855a;
}

/* ⚠️ Confirm Delete Text */
.tcn-delete-confirm p {
  font-size: 14px;
  margin: 8px 0 10px;
}

/* ============================
🌐 Responsive Design
============================ */
@media screen and (max-width: 768px) {
  .tcn-dashboard {
    padding: 20px 12px;
  }

  .tcn-btn,
  .tcn-link {
    font-size: 14px;
  }

  .tcn-action-buttons {
    gap: 8px;
  }
}
