/* ==========================================================================
   GEETDHAAM STUDIO OS - TECHNODHAAM EXECUTIVE SIGNATURE DESIGN SYSTEM
   Exact 1:1 match with Technodhaam Business OS (myhq-adminji)
   High-Contrast, Ultra-Clean, Pure White Surfaces, Tailwind Palette
   ========================================================================== */

:root {
  --td-bg: #F8FAFC;
  --td-card-bg: #FFFFFF;
  --td-border: #F1F5F9;
  --td-border-subtle: #E2E8F0;
  --td-border-strong: #CBD5E1;
  
  --td-primary: #10B981;
  --td-primary-dark: #059669;
  --td-primary-light: #ECFDF5;
  --td-primary-border: #A7F3D0;
  
  --td-text-dark: #0F172A;
  --td-text-body: #1E293B;
  --td-text-muted: #64748B;
  --td-text-dim: #94A3B8;
  
  --td-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --td-font-outfit: 'Outfit', sans-serif;
  
  --td-shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  --td-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --td-shadow-dropdown: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.td-body {
  background-color: var(--td-bg);
  color: var(--td-text-body);
  font-family: var(--td-font);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Minimal Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Layout */
.td-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ==========================================================================
   SIDEBAR (Technodhaam myhq-adminji exact style)
   ========================================================================== */
.td-sidebar {
  width: 256px;
  height: 100vh;
  background: #FFFFFF;
  border-right: 1px solid #F1F5F9;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.td-sidebar-brand {
  padding: 24px 20px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-bottom: 1px solid #F8FAFC;
}

.td-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, #34D399 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  flex-shrink: 0;
}

.td-brand-meta {
  display: flex;
  flex-direction: column;
}

.td-brand-name {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #0F172A;
  line-height: 1;
}

.td-brand-name span {
  color: #059669;
}

.td-brand-subtitle {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #94A3B8;
  margin-top: 4px;
}

.td-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.td-nav-section-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #94A3B8;
  padding: 14px 12px 6px;
}

.td-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  color: #64748B;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  border: 1px solid transparent;
}

.td-nav-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  color: #94A3B8;
  transition: color 0.15s ease;
}

.td-nav-item:hover {
  background: #F8FAFC;
  color: #059669;
}

.td-nav-item:hover i {
  color: #059669;
}

/* Active Nav Item - EXACT Technodhaam style */
.td-nav-item.active {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
  font-weight: 700;
}

.td-nav-item.active i {
  color: #059669;
}

.td-nav-badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 6px;
  background: #D1FAE5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

/* Sidebar Footer (Swaroop Suthar) */
.td-sidebar-footer {
  padding: 16px;
  border-top: 1px solid #F1F5F9;
  background: #FFFFFF;
}

.td-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}

.td-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #E2E8F0;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
}

.td-user-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.td-user-name {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.td-user-role {
  font-size: 9.5px;
  font-weight: 800;
  color: #059669;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.td-user-link {
  color: #94A3B8;
  font-size: 13px;
  padding: 6px;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.td-user-link:hover {
  color: #059669;
}

/* ==========================================================================
   TOPBAR HEADER (Technodhaam exact style)
   ========================================================================== */
.td-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  background: var(--td-bg);
}

.td-topbar {
  height: 80px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #FFFFFF;
  border-bottom: 1px solid #F1F5F9;
  position: sticky;
  top: 0;
  z-index: 90;
}

.td-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.td-topbar-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #0F172A;
}

.td-mobile-toggle {
  display: none;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #0F172A;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
}

/* Topbar Global Search (rounded-full) */
.td-search-box {
  position: relative;
  width: 280px;
}

.td-search-input-wrap {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  padding: 8px 16px;
  transition: all 0.2s ease;
}

.td-search-input-wrap:focus-within {
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.td-search-input-wrap input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 13px;
  font-family: inherit;
  color: #0F172A;
}

.td-search-input-wrap input::placeholder {
  color: #94A3B8;
}

.td-search-input-wrap i {
  color: #94A3B8;
  font-size: 14px;
  margin-left: 8px;
}

/* Global Search Dropdown */
.td-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 380px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: var(--td-shadow-dropdown);
  padding: 10px;
  z-index: 150;
  display: none;
  max-height: 400px;
  overflow-y: auto;
}

.td-search-dropdown.open {
  display: block;
}

/* Topbar Right Controls */
.td-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.td-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

.td-icon-btn:hover {
  background: #F8FAFC;
  color: #0F172A;
  border-color: #CBD5E1;
}

.td-notif-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF4444;
  border: 2px solid #FFFFFF;
}

.td-topbar-profile-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 6px;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: var(--td-shadow-card);
}

.td-topbar-profile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
}

.td-topbar-profile-text {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
}

/* ==========================================================================
   VIEW CONTAINER & EXECUTIVE HERO BANNER (Swaroop's OS)
   ========================================================================== */
.td-content {
  padding: 32px;
  flex: 1;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.td-view {
  display: none;
}

.td-view.active {
  display: block;
}

/* Hero Section */
.td-hero-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

@media (min-width: 900px) {
  .td-hero-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.td-hero-left h1 {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #0F172A;
  line-height: 1.1;
}

.td-hero-left p {
  font-size: 12px;
  font-weight: 700;
  color: #94A3B8;
  margin-top: 4px;
}

.td-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Action Buttons */
.td-btn-pill {
  padding: 9px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}

.td-btn-emerald {
  background: #059669;
  color: #FFFFFF;
  box-shadow: 0 1px 2px 0 rgba(5, 150, 105, 0.2);
}
.td-btn-emerald:hover {
  background: #047857;
  color: #FFFFFF;
}

.td-btn-red-soft {
  background: #FEF2F2;
  color: #DC2626;
  border-color: #FECACA;
}
.td-btn-red-soft:hover {
  background: #FEE2E2;
}

/* ==========================================================================
   METRIC STAT CARDS
   ========================================================================== */
.td-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.td-metric-card {
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  border-radius: 16px;
  padding: 20px;
  position: relative;
  box-shadow: var(--td-shadow-card);
  transition: all 0.2s ease;
}

.td-metric-card:hover {
  box-shadow: var(--td-shadow-hover);
  border-color: #E2E8F0;
}

.td-metric-top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748B;
  margin-bottom: 10px;
}

.td-metric-icon-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.td-metric-label {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

.td-metric-value {
  font-size: 26px;
  font-weight: 900;
  color: #0F172A;
  letter-spacing: -0.5px;
  line-height: 1;
}

.td-metric-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: #F8FAFC;
  color: #94A3B8;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.td-metric-subtext {
  position: absolute;
  bottom: 18px;
  right: 18px;
  font-size: 11px;
  font-weight: 800;
}

/* ==========================================================================
   EXECUTIVE 2-COLUMN SPLIT (CHART & TARGET CARD)
   ========================================================================== */
.td-dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

@media (max-width: 1024px) {
  .td-dash-grid {
    grid-template-columns: 1fr;
  }
}

/* Goals & Targets Card with Edit button */
.td-target-card {
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--td-shadow-card);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.td-target-watermark {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 120px;
  color: #059669;
  opacity: 0.04;
  pointer-events: none;
}

.td-target-title {
  font-size: 15px;
  font-weight: 800;
  color: #065F46;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.td-target-label {
  font-size: 11px;
  font-weight: 800;
  color: #059669;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.td-target-number {
  font-size: 28px;
  font-weight: 900;
  color: #0F172A;
  margin-top: 4px;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.td-progress-wrap {
  margin-bottom: 16px;
}

.td-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 6px;
}

.td-progress-bar-track {
  height: 9px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  overflow: hidden;
}

.td-progress-bar-fill {
  height: 100%;
  background: #10B981;
  border-radius: 9999px;
  transition: width 0.8s ease;
}

.td-target-callout {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #065F46;
}

/* Master Consolidated Digital Bank Card */
.td-vault-bank-card {
  background: linear-gradient(135deg, #133c30 0%, #0d2c23 50%, #061813 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 20px;
  padding: 20px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 20px -5px rgba(19, 60, 48, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  margin-top: 16px;
}

.td-vault-card-badge {
  font-size: 8.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.25);
  color: #A7F3D0;
  border: 1px solid rgba(16, 185, 129, 0.4);
  display: inline-flex;
}

.td-vault-card-num {
  font-family: monospace;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 14px;
}

.td-vault-card-bal-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #A7F3D0;
  font-weight: 800;
  margin-top: 6px;
}

.td-vault-card-bal-val {
  font-size: 22px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.5px;
}

/* ==========================================================================
   KANBAN BOARD (LEADS CRM: 4 COLUMNS: New, Contacted, Converted, Lost)
   ========================================================================== */
.td-kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
}

@media (max-width: 1100px) {
  .td-kanban-board {
    display: flex;
  }
  .td-kanban-col {
    width: 280px;
    flex-shrink: 0;
  }
}

.td-kanban-col {
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.td-kanban-head {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #F1F5F9;
  background: #FFFFFF;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.td-kanban-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
  color: #1E293B;
}

.td-kanban-badge {
  font-size: 11px;
  font-weight: 800;
  background: #E2E8F0;
  color: #475569;
  padding: 2px 7px;
  border-radius: 9999px;
}

.td-kanban-cards {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  flex: 1;
}

.td-lead-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
  position: relative;
}

.td-lead-card:hover {
  border-color: #10B981;
  box-shadow: var(--td-shadow-hover);
}

.td-lead-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.td-lead-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #EFF6FF;
  color: #2563EB;
}

.td-lead-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.td-lead-client-name {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 4px;
}

.td-lead-song {
  font-size: 12.5px;
  color: #64748B;
  font-weight: 600;
  margin-bottom: 12px;
}

.td-lead-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #F8FAFC;
  padding-top: 10px;
}

.td-lead-price {
  font-size: 14.5px;
  font-weight: 900;
  color: #0F172A;
}

/* ==========================================================================
   CLIENT DATABASE CARDS GRID (Month Wise Filtered)
   ========================================================================== */
.td-clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.td-client-card {
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--td-shadow-card);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.td-client-card:hover {
  box-shadow: var(--td-shadow-hover);
  border-color: #E2E8F0;
}

.td-client-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.td-client-initial-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
  color: #475569;
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.td-client-status-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.td-client-name {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 2px;
}

.td-client-sub {
  font-size: 12px;
  color: #64748B;
  margin-bottom: 14px;
}

.td-client-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #475569;
  margin-bottom: 6px;
}

.td-client-meta-row i {
  color: #94A3B8;
  width: 14px;
}

.td-client-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #F8FAFC;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.td-client-btn-profile {
  margin-top: 12px;
  width: 100%;
  padding: 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  color: #047857;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.td-client-btn-profile:hover {
  background: #ECFDF5;
  border-color: #A7F3D0;
}

/* ==========================================================================
   CONTENT CMS MATRIX & TABS
   ========================================================================== */
.td-cms-banner {
  background: #0F172A;
  color: #FFFFFF;
  border-radius: 24px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.td-cms-banner-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 900;
}

.td-cms-banner-badge {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
  color: #94A3B8;
}

.td-cms-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .td-cms-layout {
    grid-template-columns: 1fr;
  }
}

.td-cms-menu-box {
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--td-shadow-card);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.td-cms-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.td-cms-menu-item:hover {
  background: #F8FAFC;
  color: #0F172A;
}

.td-cms-menu-item.active {
  background: #059669;
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.25);
}

.td-cms-table-card {
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  border-radius: 20px;
  box-shadow: var(--td-shadow-card);
  overflow: hidden;
}

.td-cms-table-header {
  display: grid;
  grid-template-columns: 5fr 4fr 3fr;
  padding: 14px 20px;
  background: #F8FAFC;
  border-bottom: 1px solid #F1F5F9;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748B;
}

.td-cms-table-row {
  display: grid;
  grid-template-columns: 5fr 4fr 3fr;
  padding: 18px 20px;
  border-bottom: 1px solid #F8FAFC;
  align-items: center;
  transition: background 0.15s ease;
}

.td-cms-table-row:hover {
  background: #F8FAFC;
}

.td-cms-table-row:last-child {
  border-bottom: none;
}

/* ==========================================================================
   TABLES & ACTIONS
   ========================================================================== */
.td-table-card {
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  border-radius: 20px;
  box-shadow: var(--td-shadow-card);
  overflow: hidden;
  margin-bottom: 24px;
}

.td-table-head-bar {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #F1F5F9;
  flex-wrap: wrap;
  gap: 12px;
}

.td-table-title {
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
}

.td-table-wrap {
  overflow-x: auto;
}

.td-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.td-table th {
  padding: 12px 18px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748B;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  white-space: nowrap;
}

.td-table td {
  padding: 14px 18px;
  color: #0F172A;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}

.td-table tr:hover td {
  background: #F8FAFC;
}

/* Status dots */
.td-status-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.td-status-amber { color: #D97706; }
.td-status-emerald { color: #059669; }
.td-status-blue { color: #2563EB; }
.td-status-red { color: #DC2626; }

/* Small Buttons */
.td-btn-sm {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #0F172A;
  text-decoration: none;
  transition: all 0.15s ease;
}

.td-btn-sm:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.td-btn-sm-green {
  background: #059669;
  color: #FFFFFF;
  border-color: #047857;
}
.td-btn-sm-green:hover {
  background: #047857;
  color: #FFFFFF;
}

/* ==========================================================================
   FULL TAX INVOICE GENERATOR & A4 PAPER PREVIEW (Finance Section)
   ========================================================================== */
.td-invoice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 1024px) {
  .td-invoice-grid {
    grid-template-columns: 1fr;
  }
}

.td-invoice-paper {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.td-invoice-header {
  border-bottom: 2px solid #E2E8F0;
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.td-invoice-brand {
  font-size: 24px;
  font-weight: 900;
  color: #059669;
  letter-spacing: -0.5px;
}

.td-invoice-tagline {
  font-size: 11px;
  color: #64748B;
  font-weight: 600;
}

.td-invoice-title {
  font-size: 20px;
  font-weight: 900;
  color: #0F172A;
  margin-top: 12px;
  letter-spacing: 0.5px;
}

.td-invoice-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.td-invoice-block-title {
  font-size: 10px;
  font-weight: 800;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.td-invoice-stripe {
  background: #059669;
  color: #FFFFFF;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.td-invoice-item-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #F1F5F9;
  font-size: 13px;
  font-weight: 700;
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.td-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: all 0.2s ease;
}

.td-modal-backdrop.open {
  visibility: visible;
  opacity: 1;
}

.td-modal-card {
  background: #FFFFFF;
  border-radius: 24px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.td-modal-head {
  padding: 20px 24px;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: #FFFFFF;
}

.td-modal-title {
  font-size: 17px;
  font-weight: 800;
  color: #0F172A;
}

.td-modal-card form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.td-modal-body {
  padding: 24px;
  overflow-y: auto !important;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.td-modal-body::-webkit-scrollbar {
  width: 6px;
}

.td-modal-body::-webkit-scrollbar-track {
  background: #F8FAFC;
  border-radius: 4px;
}

.td-modal-body::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

.td-modal-body::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

.td-form-group {
  margin-bottom: 16px;
}

.td-form-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #475569;
  margin-bottom: 6px;
}

.td-input,
.td-select,
.td-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  font-size: 13.5px;
  font-family: inherit;
  color: #0F172A;
  outline: none;
  transition: all 0.15s ease;
}

.td-input:focus,
.td-select:focus,
.td-textarea:focus {
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.td-modal-foot {
  padding: 16px 24px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #FFFFFF;
  flex-shrink: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .td-sidebar {
    position: fixed;
    transform: translateX(-100%);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  }
  .td-sidebar.open {
    transform: translateX(0);
  }
  .td-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .td-search-box {
    display: none;
  }
  .td-topbar {
    padding: 0 16px;
  }
  .td-content {
    padding: 16px;
  }
  .td-metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PRODUCT CRM (WEBSITE SONGS SHOWCASE STYLING - ZERO TRANSPARENCY)
   ========================================================================== */
.admin-occ-bar-wrap {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.admin-occ-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  align-items: center;
}

.admin-occ-pill {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #334155;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.admin-occ-pill:hover {
  background: #F8FAFC;
  border-color: #059669;
  color: #0F172A;
}

.admin-occ-pill.active {
  background: #059669;
  border-color: #047857;
  color: #FFFFFF;
}

.admin-sec-group {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.admin-sec-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F1F5F9;
}

.admin-sec-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 900;
  color: #0F172A;
}

.admin-sec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #DC2626;
  display: inline-block;
}

.admin-sec-count {
  font-size: 11px;
  font-weight: 800;
  color: #059669;
  border: 1px solid #A7F3D0;
  padding: 3px 10px;
  border-radius: 9999px;
  background: #FFFFFF;
}

.admin-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

@media (max-width: 640px) {
  .admin-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
  }
}

.admin-product-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.admin-product-card:hover {
  border-color: #059669;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.admin-product-imgbox {
  width: 100%;
  height: 125px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: #0F172A;
  overflow: hidden;
}

.admin-product-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-play-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #DC2626;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s, background 0.15s;
}

.admin-play-btn:hover {
  transform: scale(1.08);
  background: #B91C1C;
}

.admin-play-btn.playing {
  background: #0F172A;
}

.admin-badge-top {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #0F172A;
  color: #FFFFFF;
  font-size: 8px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #334155;
}

.admin-badge-duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: #0F172A;
  color: #FDE047;
  font-size: 8px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #334155;
  display: flex;
  align-items: center;
  gap: 3px;
}

.admin-scrubber-bar {
  padding: 6px 10px 4px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}

.admin-scrubber-track {
  width: 100%;
  height: 5px;
  background: #CBD5E1;
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

.admin-scrubber-fill {
  height: 100%;
  background: #DC2626;
  border-radius: 3px;
  width: 0%;
  transition: width 0.15s linear;
}

.admin-scrubber-times {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #64748B;
  font-weight: 700;
  margin-top: 3px;
}

.admin-card-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.admin-card-title {
  font-size: 12px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-card-sub {
  font-size: 9px;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 4px;
}

.admin-card-price {
  font-size: 14px;
  font-weight: 900;
  color: #0F172A;
}

.admin-card-mrp {
  font-size: 10px;
  color: #94A3B8;
  text-decoration: line-through;
}

.admin-card-save {
  font-size: 8px;
  font-weight: 800;
  color: #059669;
  margin-left: auto;
}

.admin-card-actions {
  display: flex;
  gap: 6px;
  padding: 8px 10px 10px;
  border-top: 1px solid #F1F5F9;
  background: #FFFFFF;
}

.admin-btn-edit {
  flex: 1;
  background: #059669;
  color: #FFFFFF;
  border: 1px solid #047857;
  padding: 7px 0;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.15s ease;
}

.admin-btn-edit:hover {
  background: #047857;
}

.admin-btn-delete {
  background: #FFFFFF;
  color: #DC2626;
  border: 1px solid #FECACA;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-btn-delete:hover {
  background: #FEF2F2;
  border-color: #DC2626;
}
