/* ======================================================
   GLOBAL STYLES
   ====================================================== */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #333;
  min-height: 100vh;
  line-height: 1.6;
  background: #f6f9fc;
}

a {
  text-decoration: none;
  transition: 0.3s ease;
}

/* ======================================================
   NAVBAR - TRACEU THEME
   ====================================================== */
.navbar {
  font-weight: 500;
  background: linear-gradient(135deg, #005da0, #4dd100);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.navbar-brand img {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 4px 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


.navbar .navbar-brand img {
  height: 42px;
  transition: 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar .nav-link {
  color: #fff !important;
  font-weight: 500;
}

.navbar .nav-link:hover {
  color: #dfffd0 !important;
  transform: translateY(-1px);
}

.navbar .btn-outline-light {
  border-color: #fff;
  color: #fff;
}

.navbar .btn-outline-light:hover {
  background: #fff;
  color: #005da0;
}

/* ======================================================
   CARD STYLES
   ====================================================== */
.card {
  border-radius: 14px;
  border: none;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* ======================================================
   HEADINGS + BUTTONS
   ====================================================== */
h4, h5 {
  color: white;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.btn {
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: 0.3s ease;
}

.btn-primary {
  background-color: #005da0;
  border: none;
}

.btn-primary:hover {
  background-color: #004a85;
  transform: translateY(-1px);
}

.btn-success {
  background-color: #4dd100;
  border: none;
}

.btn-success:hover {
  background-color: #3db400;
  transform: translateY(-1px);
}

.btn-outline-danger {
  border-color: #dc3545;
  color: #dc3545;
}

.btn-outline-danger:hover {
  background-color: #dc3545;
  color: #fff;
}



/* ======================================================
   FOOTER
   ====================================================== */
footer, .footer {
  background-color: #fff;
  border-top: 1px solid #e5edf2;
  color: #6c757d;
  font-size: 0.9rem;
  text-align: center;
  padding: 10px 0;
}

footer a, .footer a {
  color: #005da0;
  font-weight: 600;
}

footer a:hover, .footer a:hover {
  color: #004478;
  text-decoration: underline;
}

/* ======================================================
   LOGIN PAGE
   ====================================================== */
.login-page {
  background: linear-gradient(135deg, #005da0, #4dd100);
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Poppins", sans-serif;
  color: #fff;
  overflow: hidden;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.login-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 45px 35px;
  width: 380px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.login-logo {
  width: 160px;
  margin-bottom: 20px;
}

.login-title {
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 25px;
}

.btn-login {
  background: #4dd100;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(77, 209, 0, 0.35);
}

.btn-login:hover {
  background: #3eb900;
  transform: scale(1.03);
}


.login-footer {
  position: fixed;
  bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  letter-spacing: 0.3px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Password Eye Icon */
.position-relative {
  position: relative !important;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 70%;
  transform: translateY(-35%);
  font-size: 1.1rem;
  color: #005da0;
  cursor: pointer;
  user-select: none;
}


/* ======================================================
   INDEX PAGE - FULL WIDTH FIX + RESPONSIVE
   ====================================================== */
.index-hero {
  width: 100%;
  height: calc(100vh - 70px);
  background: linear-gradient(135deg, #005da0, #4dd100);
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.index-content {
  width: 100%;
  max-width: 1250px;
  padding: 40px 20px;
  margin: 0 auto;
  text-align: center;
}

.index-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.index-content p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
}

.text-highlight {
  color: #4dd100;
}

/* Role cards */
.role-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 40px 25px;
  text-align: center;
  color: #fff;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.role-card .icon {
  font-size: 50px;
  margin-bottom: 15px;
}

.role-card h5 {
  font-weight: 700;
  margin-bottom: 8px;
}

.role-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.role-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.role-card:hover .icon {
  color: #4dd100;
  transform: scale(1.1);
}

/* Footer (index only) */
.index-footer {
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  padding: 8px 0;
  position: fixed;
  bottom: 0;
  left: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* ======================================================
   RESPONSIVE FIXES
   ====================================================== */
@media (max-width: 992px) {
  .index-content h1 { font-size: 2rem; }
  .role-card { padding: 35px 20px; }
}

@media (max-width: 768px) {
  .index-hero {
    height: auto;
    padding: 80px 0 120px;
  }
  .index-content h1 { font-size: 1.8rem; }
  .role-card { padding: 30px 18px; }
}

@media (max-width: 576px) {
  .index-content h1 { font-size: 1.6rem; }
  .index-content p { font-size: 0.9rem; }
  .role-card .icon { font-size: 38px; }
}

/* ======================================================
   TRACEU FORM PAGE – BASIC INFORMATION & CASE FORMS
   ====================================================== */

.form-page {
  background-color: #f6f9fc;
  min-height: 100vh;
  padding: 40px 20px;
  font-family: "Poppins", sans-serif;
}

.form-wrapper {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  padding: 40px 35px;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 6px solid #005da0;
  position: relative;
}

/* Section Header */
.form-wrapper h4 {
  background: linear-gradient(135deg, #005da0, #4dd100);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 25px;
  text-align: left;
}

/* Labels */
.form-label {
  font-weight: 600;
  color: #005da0;
  margin-bottom: 6px;
}

/* Inputs & Selects */
.form-control,
.form-select {
  border-radius: 10px;
  border: 1px solid #d0e3ea;
  background-color: #fff;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: #4dd100;
  box-shadow: 0 0 0 3px rgba(77, 209, 0, 0.2);
}

/* Readonly fields */
input[readonly] {
  background-color: #f1f4f7;
  color: #555;
}

/* File Upload Preview */
img.mt-2.rounded {
  border: 2px solid #005da0;
  padding: 3px;
  background: #f8f9fa;
}

/* Buttons */
.btn-outline-secondary {
  color: #005da0;
  border-color: #005da0;
  font-weight: 600;
}

.btn-outline-secondary:hover {
  background: #005da0;
  color: #fff;
}

.btn-primary {
  background: linear-gradient(135deg, #005da0, #4dd100);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 93, 160, 0.25);
}

.btn-success {
  background: #4dd100;
  border: none;
  border-radius: 10px;
  font-weight: 600;
}

.btn-success:hover {
  background: #43be00;
  transform: translateY(-2px);
}

/* Flash messages */
.alert {
  border-radius: 10px;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .form-wrapper {
    padding: 25px 20px;
  }
  .form-wrapper h4 {
    font-size: 1.3rem;
  }
  .btn {
    width: 100%;
  }
  .d-flex.gap-2 {
    flex-direction: column;
  }
}

/* ======================================================
   TRACEU EDUCATION PAGE
   ====================================================== */

.case-info {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: #333;
  border-bottom: 1px solid #e6eef5;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.education-entry {
  background: #f9fbfd;
  border: 1px solid #e3edf5;
  border-radius: 14px;
  padding: 25px 20px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  position: relative;
}

.education-entry:hover {
  box-shadow: 0 6px 16px rgba(0, 93, 160, 0.1);
}

.education-entry h5 {
  font-weight: 700;
  color: #005da0;
  margin-bottom: 15px;
}

.remove-education {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ff4d4f;
  border: none;
  border-radius: 8px;
  color: #fff;
  padding: 4px 10px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.3s;
}

.remove-education:hover {
  background: #d9363e;
}

/* Responsive */
@media (max-width: 768px) {
  .case-info {
    flex-direction: column;
    gap: 5px;
  }
  .education-entry {
    padding: 20px 15px;
  }
  .remove-education {
    top: 10px;
    right: 10px;
  }
}
/* ======================================================
   EDUCATION / EMPLOYMENT ENTRY CARD & REMOVE BUTTON
   ====================================================== */

.education-entry,
.experience-entry {
  background: #f9fbfd;
  border: 1px solid #e3edf5;
  border-radius: 14px;
  padding: 25px 20px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: all 0.3s ease;
}

.education-entry:hover,
.experience-entry:hover {
  box-shadow: 0 6px 16px rgba(0, 93, 160, 0.15);
  transform: translateY(-2px);
}

/* ✅ Elegant circular “X” close button */
.remove-experience,
.remove-education {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  color: #e63946;
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.remove-experience:hover,
.remove-education:hover {
  background: #e63946;
  color: #fff;
  transform: scale(1.1);
}

/* Input area spacing */
.education-entry .form-label,
.experience-entry .form-label {
  font-weight: 600;
  color: #005da0;
}

.education-entry .form-control,
.education-entry .form-select,
.experience-entry .form-control,
.experience-entry .form-select {
  border-radius: 8px;
  border: 1px solid #d0e3ea;
  transition: all 0.2s ease;
}

.education-entry .form-control:focus,
.experience-entry .form-control:focus {
  border-color: #005da0;
  box-shadow: 0 0 0 0.2rem rgba(0, 93, 160, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
  .education-entry,
  .experience-entry {
    padding: 20px 15px;
  }
  .remove-experience,
  .remove-education {
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    font-size: 14px;
  }
}


/* ======================================================
   TRACEU EMPLOYMENT PAGE
   ====================================================== */

.experience-entry {
  background: #f9fbfd;
  border: 1px solid #e3edf5;
  border-radius: 14px;
  padding: 25px 20px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  position: relative;
}

.experience-entry:hover {
  box-shadow: 0 6px 16px rgba(0, 93, 160, 0.1);
}

.experience-entry h5 {
  font-weight: 700;
  color: #005da0;
  margin-bottom: 15px;
}

/* ======================================================
   TRACEU — Compact Circular Remove (X) Button
   ====================================================== */
.remove-experience,
.remove-education,
.remove-reference {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: rgba(255, 77, 77, 0.9);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(255, 77, 77, 0.3);
  z-index: 10;
}

.remove-experience:hover,
.remove-education:hover,
.remove-reference:hover {
  background: #e63946;
  transform: scale(1.1);
}



/* Responsive */
@media (max-width: 768px) {
  .experience-entry {
    padding: 20px 15px;
  }
  .remove-experience {
    top: 10px;
    right: 10px;
  }
}

/* ===============================
   TraceU Final Report Styling
   Author: TraceU.ai
   =============================== */

/* --- Base Page Layout --- */
body {
  background-color: #f8fafc;
  font-family: "Poppins", "Segoe UI", sans-serif;
  color: #333;
}

.final-report {
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Report Cards --- */
.report-card {
  transition: all 0.3s ease;
  border: 1px solid #e4e7eb !important;
  background-color: #fff !important;
  border-radius: 12px !important;
}

.report-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

/* --- Section Titles --- */
.section-title,
.report-card h5 {
  border-left: 4px solid #007bff;
  padding-left: 10px;
  font-weight: 600;
  color: #0a58ca;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Tables --- */
.table {
  font-size: 0.9rem;
  border-color: #dee2e6;
  background-color: #fff;
}

.table th {
  background-color: #f1f5f9 !important;
  color: #0a3d62;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.table td {
  vertical-align: middle;
  color: #333;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: #f9fbfd;
}

.table-bordered th,
.table-bordered td {
  border: 1px solid #dfe3e8 !important;
}

/* --- Buttons --- */
.btn {
  border-radius: 8px !important;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.btn-primary {
  background-color: #007bff !important;
  border: none !important;
}

.btn-warning {
  background-color: #ffb400 !important;
  border: none !important;
  color: #212529 !important;
}

.btn-outline-secondary:hover {
  background-color: #6c757d;
  color: #fff !important;
}

/* --- Header Section --- */
.report-header {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  border-radius: 10px;
  padding: 20px;
}

.report-header h3 {
  color: #fff;
  margin-bottom: 4px;
}

.report-header p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

/* --- Links --- */
a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- Proof Links --- */
a[target="_blank"] {
 
  font-weight: 500;
}

a[target="_blank"]:hover {
  color: #0056b3;
}

/* --- Remarks Text --- */
.report-card strong {
  color: #0a3d62;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .report-header {
    text-align: center;
  }

  .report-header .d-flex {
    flex-direction: column;
    gap: 10px;
  }

  .table {
    font-size: 0.85rem;
  }

  .btn {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
}

/* --- Print View (PDF Export) --- */
@media print {
  body {
    background: #fff;
    -webkit-print-color-adjust: exact !important;
  }

  .btn,
  .report-header a {
    display: none !important;
  }

  .report-card {
    box-shadow: none !important;
    border: 1px solid #bbb !important;
    page-break-inside: avoid;
  }

  .report-card h5 {
    color: #000 !important;
    border-color: #000 !important;
  }

  a[target="_blank"] {
    color: #000 !important;
  }
}
