/* Shruti Outloud Sales CRM — Custom Executive Theme */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-surface: #F7F5F2;
  --bg-card: #FFFFFF;
  --text-primary: #25232A;
  --text-secondary: #6F6A73;
  --border-color: #E8E4EA;
  --purple-brand: #5B3A72;
  --purple-light: #F1EBF5;
  --magenta-brand: #C84A86;
  --magenta-light: #F9EDF3;
  --mustard-brand: #D7A928;
  --mustard-light: #FBF5DF;
  --green-badge: #EAF5EE;
  --green-text: #1B7A43;
  --red-badge: #FDEEEE;
  --red-text: #B42318;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #D9D5DC;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #BFB8C4;
}

/* Layout Utilities */
.app-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: #FFFFFF;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-y: auto;
}

.header {
  height: 64px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.content-body {
  padding: 28px;
  flex: 1;
}

/* Navigation items */
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  margin: 2px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.nav-item:hover {
  background: var(--purple-light);
  color: var(--purple-brand);
}

.nav-item.active {
  background: var(--purple-light);
  color: var(--purple-brand);
  font-weight: 600;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-purple { background: var(--purple-light); color: var(--purple-brand); }
.badge-magenta { background: var(--magenta-light); color: var(--magenta-brand); }
.badge-mustard { background: var(--mustard-light); color: #8C6B14; }
.badge-green { background: var(--green-badge); color: var(--green-text); }
.badge-red { background: var(--red-badge); color: var(--red-text); }
.badge-gray { background: #EFECE9; color: var(--text-secondary); }

/* Modal styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(37, 35, 42, 0.45);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-card {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.12);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Cards */
.crm-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.crm-card:hover {
  border-color: #D6CFDB;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .sidebar {
    display: none;
  }
  .sidebar.mobile-open {
    display: flex;
    position: fixed;
    inset: 0 right 60px;
    z-index: 50;
    box-shadow: 10px 0 30px rgba(0,0,0,0.15);
  }
}
