/* ==========================================================================
   PRODUTIVIDADE CALMA — DESIGN SYSTEM & PWA STYLESHEET (CLICKUP INSPIRED)
   Marca: Nascimento Consultoria (Vander Core)
   Aesthetic: Ultra-modern ClickUp UI — Clean Cards, Status Headers, Pill Badges & Sleek Spacing
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Sora:wght@600;700;800&display=swap');

:root {
  /* ClickUp / Nascimento Consultoria Color Tokens */
  --primary: #7B6CF6;
  --primary-hover: #6355E6;
  --primary-light: #EEF2FF;
  --primary-glow: rgba(123, 108, 246, 0.15);
  
  --bg-main: #F8FAFC;
  --surface: #FFFFFF;
  --surface-hover: #F1F5F9;
  
  --slate-dark: #0F172A;
  --slate-mid: #334155;
  --slate-light: #64748B;
  --slate-subtle: #94A3B8;
  --border-color: #E2E8F0;
  --border-subtle: #F1F5F9;
  
  /* ClickUp Status Colors */
  --status-todo: #64748B;
  --status-todo-bg: #F1F5F9;
  --status-progress: #4F46E5;
  --status-progress-bg: #EEF2FF;
  --status-done: #10B981;
  --status-done-bg: #ECFDF5;
  --status-alert: #EF4444;
  --status-alert-bg: #FEF2F2;
  --status-warning: #F59E0B;
  --status-warning-bg: #FFFBEB;
  
  --whatsapp: #25D366;
  --whatsapp-hover: #1EBD56;

  --font-title: 'Sora', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* ClickUp Soft Elevate Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 4px 16px -2px rgba(123, 108, 246, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px -4px rgba(123, 108, 246, 0.14), 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-dark: 0 12px 28px -6px rgba(15, 23, 42, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--slate-dark);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   ClickUp Style Topbar Header
   ========================================================================== */
.app-header {
  background: linear-gradient(180deg, #0F172A 0%, #1E1B4B 100%);
  color: #FFFFFF;
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-dark);
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary) 0%, #9B8DFD 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 18px;
  color: #FFFFFF;
  box-shadow: 0 0 20px rgba(123, 108, 246, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-info h1 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.brand-info p {
  font-size: 0.75rem;
  color: #94A3B8;
  font-weight: 500;
}

.engineer-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.avatar-circle {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  color: #FFF;
  box-shadow: 0 2px 8px rgba(123, 108, 246, 0.3);
}

.engineer-details {
  display: flex;
  flex-direction: column;
}

.engineer-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #F8FAFC;
}

.engineer-role {
  font-size: 0.7rem;
  color: #94A3B8;
}

/* ==========================================================================
   ClickUp Style App Navigation Bar
   ========================================================================== */
.app-nav {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 70px;
  z-index: 90;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 12px;
}

.nav-container::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-light);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.nav-tab:hover {
  color: var(--primary);
  background-color: var(--primary-light);
}

.nav-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background-color: rgba(123, 108, 246, 0.04);
}

.nav-tab .badge {
  background-color: #F1F5F9;
  color: var(--slate-mid);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.nav-tab.active .badge {
  background-color: var(--primary);
  color: #FFFFFF;
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.main-wrapper {
  flex: 1;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 24px;
}

/* View Sections */
.view-section {
  display: none;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header & Headers */
.section-header {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.section-header h2 {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--slate-dark);
  letter-spacing: -0.01em;
}

.section-header p {
  color: var(--slate-light);
  font-size: 0.88rem;
  margin-top: 4px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 24px;
}

/* ==========================================================================
   ClickUp Inspired Cards & KPI Containers
   ========================================================================== */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
  transform: translateY(-2px);
}

/* ClickUp Top Accent Bar for Cards */
.card.card-accent-purple::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #9B8DFD);
}

.card.card-accent-green::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10B981, #34D399);
}

.card-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.card-title-bar h3 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-dark);
}

/* ==========================================================================
   ClickUp Status Pills & Badges
   ========================================================================== */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.status-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

.status-pill.em_andamento {
  background-color: var(--status-progress-bg);
  color: var(--status-progress);
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.status-pill.aprovado {
  background-color: var(--status-done-bg);
  color: var(--status-done);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-pill.alerta {
  background-color: var(--status-alert-bg);
  color: var(--status-alert);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-pill.warning {
  background-color: var(--status-warning-bg);
  color: var(--status-warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ==========================================================================
   ClickUp Style Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(123, 108, 246, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 18px rgba(123, 108, 246, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #F1F5F9;
  color: var(--slate-dark);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: #E2E8F0;
  color: var(--slate-dark);
}

.btn-whatsapp {
  background: linear-gradient(135deg, var(--whatsapp) 0%, var(--whatsapp-hover) 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   ClickUp Task List & Kanban Board Design
   ========================================================================== */
.clickup-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #F8FAFC;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--slate-dark);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--surface);
  margin-bottom: 10px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.checklist-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  background-color: #FAFAFE;
}

.checklist-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
  margin-top: 2px;
  border-radius: 4px;
}

.checklist-content {
  flex: 1;
}

.checklist-title {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--slate-dark);
}

.checklist-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--slate-light);
  margin-top: 6px;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: #F1F5F9;
  font-weight: 600;
}

/* ==========================================================================
   ClickUp Supplier Table
   ========================================================================== */
.clickup-table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.clickup-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.clickup-table th {
  background: #F8FAFC;
  padding: 14px 16px;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--slate-mid);
  border-bottom: 1px solid var(--border-color);
}

.clickup-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--slate-dark);
}

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

.supplier-badge {
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.price-tag {
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--slate-dark);
  font-size: 1.05rem;
}

.delivery-time {
  font-size: 0.78rem;
  color: var(--status-done);
  font-weight: 700;
}

/* ==========================================================================
   Client Portal & Photo Cards
   ========================================================================== */
.client-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 100%);
  color: #FFFFFF;
  padding: 32px 28px;
  border-radius: var(--radius-xl);
  margin-bottom: 24px;
  box-shadow: var(--shadow-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.client-hero h2 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.photo-thumb {
  width: 100%;
  height: 145px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.photo-thumb:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

/* ==========================================================================
   Footer & Floating Audio Button
   ========================================================================== */
.app-footer {
  text-align: center;
  padding: 24px;
  color: var(--slate-light);
  font-size: 0.82rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  background-color: var(--surface);
}

.fab-audio {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #FFF;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 8px 24px rgba(123, 108, 246, 0.45);
  cursor: pointer;
  z-index: 200;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-audio:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(123, 108, 246, 0.6);
}

/* Mobile Sandwich Menu Button */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: #FFF;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Mobile Responsive Drawer */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .engineer-profile {
    display: none;
  }

  .app-nav {
    top: 64px;
  }

  .nav-container {
    display: none;
    flex-direction: column;
    background: var(--surface);
    padding: 12px;
    box-shadow: var(--shadow-dark);
  }

  .nav-container.mobile-open {
    display: flex;
  }

  .nav-tab {
    padding: 14px 16px;
    font-size: 0.92rem;
    border-bottom: 1px solid var(--border-subtle);
    border-left: 4px solid transparent;
    justify-content: space-between;
    width: 100%;
    border-radius: var(--radius-md);
  }

  .nav-tab.active {
    border-bottom-color: var(--border-subtle);
    border-left-color: var(--primary);
    background: var(--primary-light);
  }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
}

  }
}

