/* ============================================================
   DroidTester — Global Styles & CSS Variables
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

/* ── Root Variables ── */
:root {
  --primary: #1B7A43;
  --primary-light: #2D9B5A;
  --primary-dark: #15613A;
  --secondary: #E8983E;
  --secondary-light: #F5A623;
  --bg-cream: #FDF5EC;
  --bg-light-green: #E8F5E9;
  --bg-warm-beige: #F0E8DB;
  --card-bg: #FFFFFF;
  --card-border: #E8DDD0;
  --text-primary: #1A1A1A;
  --text-secondary: #6B6B6B;
  --text-muted: #999999;
  --success: #1B7A43;
  --warning: #E8983E;
  --danger: #E85050;
  --dark: #1A1A1A;

  --font-primary: 'Poppins', sans-serif;
  --font-heading: 'Playfair Display', serif;

  --sidebar-width: 250px;
  --header-height: 70px;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 20px;
  --border-radius-pill: 50px;

  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.10);
  --shadow-hover: 0 8px 30px rgba(27, 122, 67, 0.15);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  --gradient-green: linear-gradient(135deg, #1B7A43, #2D9B5A);
  --gradient-page: linear-gradient(135deg, #FDF5EC, #E8F5E9);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
}

/* ── Typography ── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

.font-heading {
  font-family: var(--font-heading);
}

/* ── Buttons ── */
.btn-primary-custom {
  background: var(--gradient-green);
  color: #fff;
  border: none;
  border-radius: var(--border-radius-pill);
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(27, 122, 67, 0.3);
}

.btn-primary-custom:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27, 122, 67, 0.4);
  color: #fff;
}

.btn-primary-custom:active {
  transform: translateY(0);
}

.btn-dark-custom {
  background: var(--dark);
  color: #fff;
  border: none;
  border-radius: var(--border-radius-pill);
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-dark-custom:hover {
  background: #333;
  transform: translateY(-1px);
  color: #fff;
}

.btn-outline-green {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--border-radius-pill);
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-green:hover {
  background: var(--primary);
  color: #fff;
}

.btn-white-green {
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: var(--border-radius-pill);
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-white-green:hover {
  background: #f0f0f0;
}

/* ── Cards ── */
.card-custom {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card-custom:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ── Badges ── */
.badge-green {
  background: rgba(27, 122, 67, 0.1);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--border-radius-pill);
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-active {
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
}

.badge-completed {
  color: var(--secondary);
  font-weight: 600;
  font-size: 13px;
}

.badge-review {
  color: #E87040;
  font-weight: 600;
  font-size: 13px;
}

/* ── Circle Icon Buttons ── */
.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.icon-circle-green {
  background: var(--primary);
  color: #fff;
}

.icon-circle-green:hover {
  background: var(--primary-dark);
}

.icon-circle-outline {
  background: transparent;
  border: 2px solid var(--card-border);
  color: var(--text-secondary);
}

.icon-circle-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Form Controls ── */
.form-control-custom {
  border: 1.5px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 12px 16px;
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--text-primary);
  background: #fff;
  width: 100%;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-control-custom:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 122, 67, 0.1);
}

.form-control-custom::placeholder {
  color: var(--text-muted);
}

.input-group-custom {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group-custom .input-icon {
  position: absolute;
  left: 14px;
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}

.input-group-custom .form-control-custom {
  padding-left: 60px;
}

/* ── Green Gradient Section BG ── */
.section-green-bg {
  background: var(--gradient-green);
  border-radius: var(--border-radius-xl);
}

/* ── Wave Decoration ── */
.wave-decoration {
  position: absolute;
  right: -10px;
  bottom: -10px;
  opacity: 0.15;
  pointer-events: none;
}

/* ── Page Fade-in Animation ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes countUp {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ── Scrollbar Styling ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

/* ── Utility ── */
.text-primary-green {
  color: var(--primary) !important;
}

.text-secondary-color {
  color: var(--text-secondary) !important;
}

.text-orange {
  color: var(--secondary) !important;
}

.bg-cream {
  background: var(--bg-cream) !important;
}

.rounded-pill-custom {
  border-radius: var(--border-radius-pill) !important;
}

.gap-8 {
  gap: 8px;
}

.fw-800 {
  font-weight: 800;
}

.fs-48 {
  font-size: 48px;
}

/* ── Modal Overrides ── */
.modal-content {
  border: none;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
}

.modal-backdrop {
  backdrop-filter: blur(4px);
}

.modal.fade .modal-dialog {
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.show .modal-dialog {
  transform: scale(1);
}
/* Added by Phase 3 — rejected/refunded status */
.badge-rejected {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: #FEE;
  color: #E85050;
  border: 1px solid #FCC;
}
