/* Dashboard Specific Styles */

/* Dashboard Header */
.dashboard-header {
  background: linear-gradient(
      135deg,
      rgba(45, 10, 15, 0.8) 0%,
      rgba(74, 14, 26, 0.8) 50%,
      rgba(26, 6, 8, 0.8) 100%
    ),
    url("logo.gif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 300px 0;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero-logo {
  max-width: 300px;
  height: auto;
  margin-bottom: 1rem;
}

.dashboard-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.dashboard-header p {
  font-size: 1.25rem;
  opacity: 0.9;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Dashboard Stats */
.dashboard-stats {
  padding: 60px 0;
  background: #f8fafc;
}

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

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid #8b1538;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(139, 21, 56, 0.2);
}

.stat-icon {
  font-size: 2.5rem;
  color: #8b1538;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 21, 56, 0.1);
  border-radius: 12px;
}

.stat-content h3 {
  font-size: 2rem;
  color: #8b1538;
  margin-bottom: 0.5rem;
}

.stat-content p {
  color: #64748b;
  font-weight: 500;
}

/* Leads Section */
.leads-section {
  padding: 60px 0;
}

.leads-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.leads-header h2 {
  font-size: 2rem;
  color: #8b1538;
}

.leads-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.leads-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.leads-filters select,
.leads-filters input {
  padding: 10px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  min-width: 150px;
}

.leads-filters input {
  flex: 1;
  min-width: 200px;
}

.leads-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lead-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #e2e8f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lead-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 21, 56, 0.15);
}

.lead-card.new {
  border-left-color: #8b1538;
}

.lead-card.contacted {
  border-left-color: #d4a574;
}

.lead-card.qualified {
  border-left-color: #10b981;
}

.lead-card.re-contacted {
  border-left-color: #f59e0b;
}

.lead-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.lead-header h4 {
  font-size: 1.2rem;
  color: #8b1538;
  margin: 0;
}

.lead-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: capitalize;
}

.lead-status.new {
  background: rgba(139, 21, 56, 0.15);
  color: #8b1538;
}

.lead-status.contacted {
  background: rgba(212, 165, 116, 0.2);
  color: #b8860b;
}

.lead-status.qualified {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.lead-status.re-contacted {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.lead-details {
  margin-bottom: 1rem;
}

.lead-details p {
  margin: 0.5rem 0;
  font-size: 0.875rem;
}

.lead-details strong {
  color: #8b1538;
  font-weight: 600;
}

.lead-details a {
  color: #8b1538;
  text-decoration: none;
}

.lead-details a:hover {
  text-decoration: underline;
}

.lead-details p:has(strong:contains("Last Contact")) {
  color: #f59e0b;
  font-weight: 500;
}

.lead-details p:has(strong:contains("Last Contact")) strong {
  color: #d97706;
}

.lead-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: radial-gradient(circle, #4a0e1a 0%, #8b1538 50%, #2d0a0f 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 21, 56, 0.4);
}

.btn-secondary {
  background: #f8fafc;
  color: #8b1538;
  border: 2px solid #8b1538;
}

.btn-secondary:hover {
  background: #8b1538;
  color: white;
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.75rem;
}

.btn-danger {
  background: #dc2626;
  color: white;
}

.btn-danger:hover {
  background: #b91c1c;
}

.no-leads {
  text-align: center;
  color: #64748b;
  font-style: italic;
  padding: 2rem;
}

/* Analytics Section */
.analytics-section {
  padding: 60px 0;
  background: #f8fafc;
}

.analytics-section h2 {
  font-size: 2rem;
  color: #8b1538;
  margin-bottom: 2rem;
  text-align: center;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.analytics-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border-top: 4px solid #8b1538;
}

.analytics-card h3 {
  color: #8b1538;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.chart-container {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-style: italic;
}

.conversion-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.conversion-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
}

.conversion-label {
  color: #64748b;
  font-size: 0.875rem;
}

.conversion-rate {
  color: #8b1538;
  font-weight: 600;
  font-size: 1.125rem;
}

/* Marketing Tools */
.marketing-tools {
  padding: 60px 0;
}

.marketing-tools h2 {
  font-size: 2rem;
  color: #8b1538;
  margin-bottom: 2rem;
  text-align: center;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.tool-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid #8b1538;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(139, 21, 56, 0.2);
}

.tool-icon {
  font-size: 3rem;
  color: #8b1538;
  margin-bottom: 1rem;
}

.tool-card h3 {
  color: #8b1538;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.tool-card p {
  color: #64748b;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 0;
  border-radius: 12px;
  width: 30%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
}

.modal-header {
  background: linear-gradient(135deg, #2d0a0f 0%, #4a0e1a 50%, #1a0608 100%);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.close {
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.close:hover {
  opacity: 0.7;
}

.modal-body {
  padding: 2rem;
  max-height: calc(90vh - 120px);
  overflow-y: auto;
}

/* Custom scrollbar for modals */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

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

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

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

.template-section {
  margin-bottom: 2rem;
}

.template-section h4 {
  color: #8b1538;
  margin-bottom: 1rem;
}

.template-section textarea {
  width: 100%;
  min-height: 120px;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.875rem;
  resize: vertical;
}

.schedule-form {
  display: grid;
  gap: 1rem;
}

.schedule-form .form-group {
  margin-bottom: 0;
}

.schedule-form label {
  color: #8b1538;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.schedule-form input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-header h1 {
    font-size: 2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .leads-header {
    flex-direction: column;
    align-items: stretch;
  }

  .leads-filters {
    flex-direction: column;
  }

  .leads-filters select,
  .leads-filters input {
    min-width: auto;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 95%;
    margin: 5% auto;
    max-height: 85vh;
    overflow-y: auto;
  }

  .modal-header,
  .modal-body {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .dashboard-header {
    padding: 80px 0 40px;
  }

  .dashboard-header h1 {
    font-size: 1.75rem;
  }

  .stat-card {
    padding: 1.5rem;
    flex-direction: column;
    text-align: center;
  }

  .lead-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .lead-actions {
    justify-content: center;
  }
}

/* Animations */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-card {
  animation: countUp 0.6s ease-out;
}

.stat-card:nth-child(1) {
  animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
  animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
  animation-delay: 0.3s;
}

.stat-card:nth-child(4) {
  animation-delay: 0.4s;
}

/* Navigation Styles */
.navbar {
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo a {
  text-decoration: none;
}

.nav-logo-img {
  height: 80px;
  width: auto;
  max-width: 400px;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: #64748b;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #8b1538;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation Auth */
.nav-auth {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-auth .btn {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* Authentication Modal */
#loginModal .modal-content {
  max-width: 480px;
}

#loginForm {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
  margin: auto;
}

.form-group {
  margin-bottom: 1.5rem;
  width: 100%;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #1e293b;
  font-weight: 500;
  text-align: left;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  max-width: 300px;
  margin: 0 auto;
  display: block;
}

.form-group input:focus {
  outline: none;
  border-color: #8b1538;
  box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.1);
}

.error-message {
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 12px;
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 0.875rem;
}

/* Tab System */
.tab-container {
  margin-top: 2rem;
}

.tab-buttons {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 2rem;
}

.tab-button {
  background: none;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.tab-button:hover {
  color: #8b1538;
  background: rgba(139, 21, 56, 0.05);
}

.tab-button.active {
  color: #8b1538;
  border-bottom-color: #8b1538;
  background: rgba(139, 21, 56, 0.05);
}

.tab-content {
  display: none;
}

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

/* Prospecting Tools */
.prospecting-tools {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

/* Prospecting Table */
.prospecting-table,
.contacted-table {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.prospect-table {
  width: 100%;
  border-collapse: collapse;
}

.prospect-table th,
.prospect-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.prospect-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #1e293b;
}

.prospect-table tr:hover {
  background: rgba(139, 21, 56, 0.02);
}

.contact-status-select {
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.875rem;
}

.priority-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.priority-high {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.priority-medium {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.priority-low {
  background: rgba(34, 197, 94, 0.1);
  color: #059669;
}

/* Research Hub Modal */
.research-modal .modal-content {
  max-width: 800px;
}

.research-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 8px;
}

.research-section h4 {
  color: #8b1538;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.research-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.strategy-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.checkbox-item:hover {
  background: rgba(139, 21, 56, 0.05);
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #8b1538;
}

.checkbox-item span {
  color: #64748b;
  font-size: 0.9rem;
}

/* Quick Add Form */
.quick-add-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.quick-add-form input,
.quick-add-form select,
.quick-add-form textarea {
  padding: 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.9rem;
}

.quick-add-form textarea {
  grid-column: 1 / -1;
  min-height: 80px;
  resize: vertical;
}

/* Enhanced Lead Cards */
.lead-card {
  position: relative;
}

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

.lead-card .contact-date {
  font-size: 0.8rem;
  color: #64748b;
  font-style: italic;
}

.lead-card .priority-indicator {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.priority-indicator.high {
  background: #dc2626;
}

.priority-indicator.medium {
  background: #d97706;
}

.priority-indicator.low {
  background: #059669;
}

/* Add Lead Form */
.add-lead-form {
  display: grid;
  gap: 1.5rem;
}

.add-lead-form .form-group {
  margin-bottom: 0;
}

/* Research Tools Styling */
.research-tools .btn {
  justify-content: flex-start;
  padding: 1rem;
  text-align: left;
}

.research-tools .btn i {
  margin-right: 0.75rem;
  width: 20px;
}

/* Contact Status Indicators */
.contact-status {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.contact-status.not-contacted {
  background: rgba(107, 114, 128, 0.1);
  color: #374151;
}

.contact-status.contacted {
  background: rgba(139, 21, 56, 0.1);
  color: #8b1538;
}

.contact-status.follow-up {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

/* Responsive Design for New Components */
@media (max-width: 768px) {
  .tab-buttons {
    flex-direction: column;
  }

  .tab-button {
    text-align: center;
    border-bottom: none;
    border-right: 3px solid transparent;
  }

  .tab-button.active {
    border-bottom: none;
    border-right-color: #8b1538;
  }

  .research-tools {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .prospecting-tools {
    flex-direction: column;
  }

  .prospect-table {
    font-size: 0.875rem;
  }

  .prospect-table th,
  .prospect-table td {
    padding: 0.75rem 0.5rem;
  }
}

.last-contact-info {
  color: #f59e0b !important;
  font-weight: 500;
  background: rgba(245, 158, 11, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border-left: 3px solid #f59e0b;
}

.last-contact-info strong {
  color: #d97706 !important;
}
