/* =====================
   GLOBAL RESET
===================== */
*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

:root{
  --primary:#2563eb;
  --primary-dark:#1e40af;
  --success:#16a34a;
  --danger:#dc2626;
  --warning:#f59e0b;
  --bg:#f1f5f9;
  --card:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --border:#e5e7eb;
  --sidebar:#0f172a;
}

body{
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.5;
}

/* =====================
   TOP BAR
===================== */
.topbar{
  background:linear-gradient(135deg,var(--primary-dark),var(--primary));
  color:#fff;
  padding:18px 30px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.topbar h2{
  font-size:22px;
  font-weight:600;
}

/* =====================
   LAYOUT
===================== */
.layout{
  display:flex;
  min-height:100vh;
}

/* =====================
   SIDEBAR
===================== */
.sidebar{
  width:240px;
  background:var(--sidebar);
  color:#cbd5f5;
  padding:25px 20px;
}

.sidebar .menu{
  display:block;
  padding:12px 15px;
  border-radius:10px;
  color:#e5e7eb;
  text-decoration:none;
  margin-bottom:10px;
  transition:0.25s;
}

.sidebar .menu:hover{
  background:#1e293b;
  color:#fff;
}

/* =====================
   CONTENT
===================== */
.content{
  flex:1;
  padding:30px;
}

/* =====================
   PAGE HEADER
===================== */
.page-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:25px;
}

.page-header h3{
  font-size:22px;
  font-weight:600;
}

.page-header input{
  padding:10px 14px;
  border-radius:10px;
  border:1px solid var(--border);
  min-width:260px;
}

/* =====================
   TABLE
===================== */
.table{
  width:100%;
  background:var(--card);
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 8px 25px rgba(0,0,0,.06);
}

.table th,
.table td{
  padding:14px 16px;
  text-align:left;
  border-bottom:1px solid var(--border);
}

.table th{
  background:#f8fafc;
  font-size:13px;
  text-transform:uppercase;
  color:var(--muted);
}

.table tr:hover{
  background:#f9fafb;
}

/* =====================
   BADGES
===================== */
.badge{
  display:inline-block;
  padding:6px 14px;
  font-size:12px;
  font-weight:600;
  border-radius:999px;
}

.Pending{
  background:#fef3c7;
  color:#92400e;
}

.Approved{
  background:#dcfce7;
  color:#065f46;
}

.Rejected{
  background:#fee2e2;
  color:#7f1d1d;
}

/* =====================
   BUTTONS
===================== */
.btn{
  display:inline-block;
  padding:10px 18px;
  border-radius:10px;
  border:none;
  font-weight:600;
  cursor:pointer;
  text-decoration:none;
  transition:0.2s;
}

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

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

.approve{
  background:var(--success);
  color:#fff;
}

.reject{
  background:var(--danger);
  color:#fff;
}

/* =====================
   CARDS
===================== */
.profile-card,
.timeline-card,
.followup-form{
  background:var(--card);
  padding:25px;
  border-radius:18px;
  margin-bottom:25px;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
}

/* =====================
   PROFILE CARD
===================== */
.profile-card h2{
  font-size:26px;
  margin-bottom:8px;
}

.profile-card p{
  color:var(--muted);
  margin-bottom:15px;
}

/* =====================
   TIMELINE
===================== */
.timeline-item{
  display:flex;
  gap:15px;
  margin-bottom:22px;
}

.timeline-item .icon{
  width:42px;
  height:42px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  color:#fff;
  flex-shrink:0;
}

.timeline-item.Call .icon{ background:var(--primary); }
.timeline-item.Mail .icon{ background:var(--success); }
.timeline-item.Meeting .icon{ background:#9333ea; }

.timeline-item p{
  margin:6px 0;
  color:#374151;
}

.timeline-item small{
  color:var(--muted);
}

/* =====================
   FORMS
===================== */
input, select, textarea{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  font-size:14px;
  margin-top:10px;
  background:#fff;
}

textarea{
  resize:vertical;
  min-height:90px;
}

input:focus,
select:focus,
textarea:focus{
  outline:none;
  border-color:var(--primary);
  box-shadow:0 0 0 2px rgba(37,99,235,.15);
}

/* =====================
   FOOTER
===================== */
.footer{
  text-align:center;
  padding:15px;
  background:#e5e7eb;
  color:#374151;
  font-size:14px;
}

/* =====================
   INLINE FORM
===================== */
.inline{
  display:inline-flex;
  gap:10px;
  margin-top:10px;
}

/* =====================
   RESPONSIVE
===================== */
@media(max-width:1024px){
  .sidebar{ width:200px; }
}

@media(max-width:768px){
  .layout{
    flex-direction:column;
  }

  .sidebar{
    width:100%;
    display:flex;
    gap:10px;
  }

  .content{
    padding:20px;
  }

  .page-header{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }

  .page-header input{
    width:100%;
  }

  .table{
    display:block;
    overflow-x:auto;
  }
}

@media(max-width:480px){
  .topbar{
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
  }

  .profile-card h2{
    font-size:22px;
  }

  .btn{
    width:100%;
    text-align:center;
  }
}

/* =====================
   FORM GRID – ADD LEAD
===================== */
.form-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:20px;
}

.form-group label{
  display:block;
  font-size:13px;
  font-weight:600;
  color:#374151;
  margin-bottom:6px;
}

.form-group.full{
  margin-top:15px;
}

.form-actions{
  display:flex;
  gap:12px;
  margin-top:20px;
}

/* Mobile */
@media(max-width:480px){
  .form-actions{
    flex-direction:column;
  }
}

