/* Custom styles for M&A Deals Tracker */

/* Top ribbon */
.top-ribbon {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #0f161f;
  padding: 10px 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ribbon-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo-section {
  display: flex;
  align-items: center;
}

.ribbon-logo {
  height: 40px;
}

.back-button {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d4af37;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
}

.back-button:hover {
  background-color: rgba(212, 175, 55, 0.1);
  border-color: #d4af37;
}

.back-button svg {
  width: 16px;
  height: 16px;
}

/* Custom gradient background for header */
.bg-gradient-to-r.from-blue-600.to-purple-600 {
  background: linear-gradient(90deg, #2563eb, #7c3aed);
}

/* Card hover effect */
.rounded-lg.shadow-md {
  transition: all 0.3s ease;
}

.rounded-lg.shadow-md:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Chart container styling */
.h-64 {
  min-height: 16rem;
}

/* Make sure tooltips appear above other elements */
canvas {
  max-width: 100%;
}

/* Better styling for search input */
input[type="text"], select {
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input[type="text"]:focus, select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  outline: none;
}

/* Better button hover effect */
.bg-blue-600.hover\:bg-blue-700 {
  transition: background-color 0.2s ease;
}

.bg-gray-500.hover\:bg-gray-600 {
  transition: background-color 0.2s ease;
}

/* Custom styling for the deal cards */
.bg-gradient-to-r.from-blue-500.to-blue-600 {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

/* Industry badge styling */
.industry-badge {
  display: inline-block;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Filter section styling */
.filters-container {
  background: white;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filter-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

/* Loading spinner */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 40vh;
  width: 100%;
}

.loading-spinner.hidden {
  display: none !important;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .h-64 {
    min-height: 14rem;
  }
  
  .grid-cols-3 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  
  .grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  
  .ribbon-container {
    padding: 0 10px;
  }
  
  .back-button span {
    display: none; /* Hide text, show only icon on mobile */
  }
  
  .back-button {
    padding: 8px;
  }

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

  .filters-container .flex-wrap {
    flex-wrap: wrap;
  }
}

/* Customize scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Print styles for reports */
@media print {
  .top-ribbon, .filters-container, footer {
    display: none !important;
  }
  
  .grid {
    display: block !important;
  }
  
  .rounded-lg {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
  
  .h-64 {
    height: 300px !important;
  }
  
  .main-content {
    margin-top: 0 !important;
  }
}

/* Custom footer styling from Imergea site */
.footer {
  background-color: #0f1629;
  padding: 70px 0 20px;
  color: #ffffff;
  margin-top: 50px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 45px;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: #d4af37;
  color: #0f1629;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: #d4af37;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links ul li a:hover {
  color: #d4af37;
  padding-left: 5px;
}

.footer-contact {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item i {
  margin-right: 10px;
  color: #d4af37;
  width: 20px;
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}