/* CSS Variables for Theming */
:root {
  --primary-color: #2563eb;
  --secondary-color: #64748b;
  --success-color: #10b981;
  --background: #f8fafc;
  --surface: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --sidebar-width: 320px;
  --border-radius: 0.5rem;
  --box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
}

/* App Container - Main Layout */
.app-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar Styles */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-header {
  padding: 1.5rem 1rem 1rem;
  border-bottom: 1px solid var(--border);
  background-color: var(--surface);
}

.sidebar-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.search-container {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  background-color: var(--background);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.company-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

/* Company Card Styles */
.company-card {
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.company-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--box-shadow);
  transform: translateY(-1px);
}

.company-card.active {
  border-color: var(--primary-color);
  background-color: rgba(37, 99, 235, 0.05);
  box-shadow: var(--box-shadow);
}

.company-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.company-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Main Content Area */
.main-content {
  flex: 1;
  overflow-y: auto;
  background-color: var(--background);
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-secondary);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 2rem;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-secondary);
  max-width: 400px;
}

/* Company Details */
.company-details {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.company-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.company-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.company-tagline {
  font-size: 1.125rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Company Overview Section */
.company-overview {
  background-color: var(--surface);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.company-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-item {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.info-value {
  font-size: 0.875rem;
  color: var(--text-primary);
}

.info-value a {
  color: var(--primary-color);
  text-decoration: none;
}

.info-value a:hover {
  text-decoration: underline;
}

/* Tags */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Activity List */
.activity-list {
  list-style: none;
}

.activity-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.activity-list li:before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Sales Outreach Topics */
.outreach-topics {
  margin-bottom: 2rem;
}

.topic-card {
  border: 1px solid var(--border);
  padding: 1.25rem;
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  background-color: var(--surface);
}

.topic-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.topic-description {
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.topic-resonance {
  border-left: 4px solid var(--success-color);
  padding-left: 1rem;
  background-color: rgba(16, 185, 129, 0.05);
  padding: 1rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.resonance-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--success-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.resonance-text {
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.6;
}

/* Key Contacts Section */
.key-contacts {
  margin-bottom: 2rem;
}

.employees-grid {
  display: block !important;
  width: 100%;
}

.employee-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  width: 100%;
  max-width: 100%;
  margin-bottom: 1.5rem;
  display: block;
}

.employee-header {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.employee-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.employee-title {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.employee-location {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.employee-summary {
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* Employee Sections */
.employee-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.employee-section:last-of-type {
  border-bottom: none;
  margin-bottom: 1rem;
}

.section-heading {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Education Styles */
.education-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.education-item {
  background-color: var(--background);
  padding: 0.75rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
}

.education-school {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.education-degree {
  font-size: 0.8rem;
  color: var(--text-primary);
  margin-bottom: 0.125rem;
}

.education-field {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 0.125rem;
}

.education-year {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Simple Lists */
.simple-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.simple-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.simple-list li:before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Awards List Special Styling */
.awards-list li:before {
  content: "🏆";
  font-size: 0.875rem;
}

/* Certifications get checkmark */
.employee-section:has(.simple-list) .simple-list li:before {
  content: "✓";
  color: var(--success-color);
}

/* Tabs */
.tab-navigation {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.tab-button {
  background: none;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

.tab-button:hover {
  color: var(--text-primary);
}

.tab-button.active {
  color: var(--primary-color);
}

.tab-button.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.outreach-item {
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: var(--background);
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
}

.outreach-item-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.outreach-item-description {
  font-size: 0.8rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.outreach-item-resonance {
  font-size: 0.75rem;
  color: var(--success-color);
  font-style: italic;
  border-left: 2px solid var(--success-color);
  padding-left: 0.5rem;
}

/* Key Achievements */
.achievements-list {
  list-style: none;
  margin-bottom: 1rem;
}

.achievements-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.achievements-list li:before {
  content: "✓";
  color: var(--success-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.show-more {
  font-size: 0.75rem;
  color: var(--primary-color);
  font-weight: 500;
  cursor: pointer;
  margin-top: 0.5rem;
}

.show-more:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: 300px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  
  .main-content {
    flex: 1;
  }
  
  .company-details {
    padding: 1rem;
  }
  
  .company-info-grid {
    grid-template-columns: 1fr;
  }
  
  .employees-grid {
    grid-template-columns: 1fr;
  }
  
  .employee-card {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .sidebar-header {
    padding: 1rem 0.75rem;
  }
  
  .company-list {
    padding: 0.75rem;
  }
  
  .company-card {
    padding: 0.75rem;
  }
  
  .company-details {
    padding: 0.75rem;
  }
  
  .company-header h1 {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 1.125rem;
  }
} 