/* 
 * Logo styles for DevCRM
 * This file contains all styles related to the logo and branding
 */

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  position: relative;
  overflow: hidden;
}

.logo-icon::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  width: 0.75rem;
  height: 0.75rem;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
}

.logo-icon::after {
  content: "";
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
}

/* Logo styling */
.app-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin-right: 1rem;
}

.app-logo .favicon-icon {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  margin-right: 0.5rem;
}

.app-logo .favicon-icon::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  width: 0.5rem;
  /* height: 0.5rem; */
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
}

.app-logo .favicon-icon::after {
  content: "";
  position: absolute;
  bottom: 0.35rem;
  right: 0.35rem;
  width: 0.6rem;
}

.app-logo .favicon-icon-text {
  font-size: 1rem;
  font-weight: 700;
  color: white;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #2c3e50;
  display: flex;
  align-items: center;
}

.logo-highlight {
  color: #3498db;
  font-weight: 800;
}

/* Make the logo smaller on mobile devices */
@media (max-width: 640px) {
  .logo-text {
    font-size: 1.25rem;
  }
  
  .app-logo .favicon-icon {
    width: 1.75rem;
    height: 1.75rem;
  }
  
  .app-logo .favicon-icon-text {
    font-size: 0.875rem;
  }
}

/* Admin sidebar logo specific styling */
.admin-sidebar .app-logo {
  justify-content: flex-start;
  margin-bottom: 0;
}

.admin-sidebar .logo-text {
  color: white;
}

.admin-sidebar .logo-highlight {
  color: #60a5fa;
}

.admin-sidebar .favicon-icon {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

/* Footer logo styling */
.footer__brand .app-logo {
  margin-right: 0;
  margin-bottom: 0.5rem;
}

.footer__brand .logo-text {
  color: white;
  font-size: 1.5rem;
}

.footer__brand .logo-highlight {
  color: #60a5fa;
}

.footer__brand .favicon-icon {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

/* Smaller logo for favicon and mobile */
.logo-icon-small {
  width: 1.5rem;
  height: 1.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  border-radius: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.65rem;
  font-weight: bold;
  position: relative;
  overflow: hidden;
}

.logo-icon-small::before {
  content: "";
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  width: 0.35rem;
  height: 0.35rem;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
}

.logo-icon-small::after {
  content: "";
  position: absolute;
  bottom: 0.25rem;
  right: 0.25rem;
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
}

/* Fade-in animation for logo */
@keyframes logo-fade-in {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-container {
  animation: logo-fade-in 0.5s ease-out forwards;
}

/* Media queries for responsive logo */
@media (max-width: 768px) {
  .logo-text {
    font-size: 1.125rem;
  }
  
  .logo-icon {
    width: 2rem;
    height: 2rem;
  }
}
