/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, directory containing
 * vendor, or vendor directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory.
 *
 * It is generally better to create a new file per style scope.
 *
 *= require_tree .
 *= require_self
 */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Poppins:wght@400;700&display=swap');

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

/* Custom animations */
@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes pulse-soft {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 0.3;
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes button-loading {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Let Tailwind handle body styles - removed conflicting styles */

/* Let Tailwind handle heading styles - removed conflicting styles */

/* Loading button styles */
input[type='submit'].loading {
  position: relative;
  overflow: hidden;
}

input[type='submit'].loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: button-loading 1.5s infinite;
}

p {
  margin-bottom: 1rem;
}

/* Strict SVG size control */
img,
svg {
  max-width: 100%;
  height: auto;
  max-height: 60px;
}

/* Extra strict control for all SVGs */
svg {
  width: auto !important;
  height: auto !important;
  max-width: 200px !important;
  max-height: 200px !important;
}

/* Target specific large SVGs */
.hero-section svg,
.feature-icon svg,
footer svg,
.social-icon svg,
[class*='icon'] svg,
[class*='logo'] svg {
  max-width: 100px !important;
  max-height: 100px !important;
}

/* Target star rating SVGs */
[class*='star'] svg,
[class*='rating'] svg {
  max-width: 30px !important;
  max-height: 30px !important;
}

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

/* Main content container for dashboard and app pages */
.main-content-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Wide container for special cases */
.wide-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Custom button styles */
.btn-primary {
  background-color: #5730f2;
  color: #ffffff;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  transition: all 0.3s;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-0.125rem);
}

.btn-secondary {
  background-color: #ffffff;
  color: #5730f2;
  border: 2px solid #5730f2;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  transition: all 0.3s;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-secondary:hover {
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-0.125rem);
}

/* Card styles */
.card {
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.3s;
  border: 1px solid #f3f4f6;
}

.card:hover {
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-0.25rem);
}

.card-header {
  color: #ffffff;
  padding: 1rem;
  font-weight: bold;
}

.card-body {
  padding: 1rem;
}

.logo-container {
  display: flex;
  align-items: center;
  transition: all 0.3s;
}

.logo-container:hover {
  transform: scale(1.05);
}

.logo-mark {
  height: 2.5rem !important;
  width: auto !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
  min-width: 120px !important; /* Increased minimum width for better visibility */
  max-width: none !important;
}

/* Enhanced Nav Styles */
.nav-link {
  color: #0e0233;
  transition: all 0.3s;
  position: relative;
  font-family: 'Roboto', sans-serif;
}

/* Style for button_to elements to look like links */
form.button_to {
  display: inline-block;
  margin: 0;
  padding: 0;
}

form.button_to button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  outline: inherit;
  text-align: left;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0.125rem;
  background-color: #5730f2;
  transition: all 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: #5730f2;
  font-weight: bold;
}

.nav-link.active::after {
  width: 100%;
}

/* Enhanced hero section styling with texture */
.hero-section {
  background: linear-gradient(to right, #0e0233, #5730f2);
  color: #ffffff;
  padding: 4rem 2rem;
  border-radius: 0.5rem;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  background-image:
    url("/assets/texture-pattern-f68fc870.svg"), linear-gradient(135deg, #0e0233, #5730f2);
  background-size: 200px, cover;
  background-position: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  background-image: url("/assets/blob-shape-38bb1cb7.svg");
  background-repeat: no-repeat;
  background-position: right top;
  background-size: 80%;
  animation: float 15s ease-in-out infinite alternate;
}

/* Vibrant call-to-action button */
.cta-button {
  background-color: #ffffff;
  color: #5730f2;
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

/* Animated logo container */
.animated-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  transition: transform 0.5s;
}

.animated-logo:hover {
  transform: scale(1.1);
}

/* Email Verification Page Styles */
.verification-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: 'Poppins', sans-serif;
}

.verification-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
  overflow: hidden;
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.verification-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.verification-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: pulse-soft 3s ease-in-out infinite;
}

.verification-header .logo {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.verification-header h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
  color: white;
}

.verification-header p {
  font-size: 16px;
  opacity: 0.9;
  margin: 0;
}

.verification-content {
  padding: 40px 30px;
}

.email-display {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin: 30px 0;
  position: relative;
}

.email-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 24px;
}

.email-label {
  font-size: 16px;
  color: #64748b;
  margin-bottom: 10px;
}

.email-address {
  font-size: 18px;
  font-weight: 600;
  color: #667eea;
  word-break: break-all;
}

.instruction-text {
  text-align: center;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  margin: 20px 0;
}

.warning-box {
  background: #fef3cd;
  border: 1px solid #fbbf24;
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.warning-box .warning-icon {
  color: #f59e0b;
  font-size: 18px;
  margin-top: 2px;
}

.warning-box .warning-text {
  color: #92400e;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.action-section {
  text-align: center;
  margin: 30px 0;
}

.resend-label {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 15px;
}

.resend-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-width: 200px;
}

.resend-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  color: white;
  text-decoration: none;
}

.resend-button:active {
  transform: translateY(0);
}

.resend-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.resend-button i {
  margin-right: 8px;
}

.sign-out-section {
  margin-top: 20px;
}

.sign-out-button {
  background: transparent;
  color: #64748b;
  border: 1px solid #e2e8f0;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.sign-out-button:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
  text-decoration: none;
}

.sign-out-button i {
  margin-right: 6px;
}

.help-text {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.help-text p {
  color: #64748b;
  font-size: 13px;
  margin-bottom: 8px;
}

.help-text a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

.help-text a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 640px) {
  .verification-container {
    padding: 10px;
  }

  .verification-header {
    padding: 30px 20px;
  }

  .verification-header h1 {
    font-size: 24px;
  }

  .verification-content {
    padding: 30px 20px;
  }

  .email-display {
    padding: 15px;
  }

  .resend-button {
    min-width: 180px;
    padding: 10px 20px;
  }
}

/* Analytics Pages Styles */
.analytics-header {
  margin-bottom: 1.5rem;
}

.analytics-header h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.analytics-header p {
  color: #6b7280;
}

.analytics-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .analytics-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .analytics-stats-grid.three-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

.analytics-stat-card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}

.analytics-stat-content {
  display: flex;
  align-items: center;
}

.analytics-stat-icon {
  padding: 0.5rem;
  border-radius: 0.5rem;
  margin-right: 1rem;
}

.analytics-stat-icon.blue {
  background-color: #dbeafe;
}

.analytics-stat-icon.green {
  background-color: #dcfce7;
}

.analytics-stat-icon.purple {
  background-color: #f3e8ff;
}

.analytics-stat-icon i {
  color: #2563eb;
}

.analytics-stat-icon.green i {
  color: #16a34a;
}

.analytics-stat-icon.purple i {
  color: #9333ea;
}

.analytics-stat-text h3 {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.analytics-stat-text p {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.analytics-section {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.analytics-section-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.analytics-section-header h3 {
  font-size: 1.125rem;
  font-weight: 500;
  color: #111827;
  margin: 0;
}

.analytics-section-content {
  padding: 1.5rem;
}

.analytics-chart-placeholder {
  height: 16rem;
  background-color: #f9fafb;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.analytics-chart-placeholder-content {
  text-align: center;
}

.analytics-chart-placeholder-content i {
  font-size: 3rem;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.analytics-chart-placeholder-content p {
  color: #6b7280;
  margin: 0;
}

.analytics-traffic-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.analytics-traffic-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.analytics-traffic-item-left {
  display: flex;
  align-items: center;
}

.analytics-traffic-item-left i {
  color: #9ca3af;
  margin-right: 0.75rem;
}

.analytics-traffic-item-left span {
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
}

.analytics-traffic-item-right {
  font-size: 0.875rem;
  color: #6b7280;
}

.analytics-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .analytics-details-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.analytics-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.analytics-details-item {
  display: flex;
  justify-content: space-between;
}

.analytics-details-item span:first-child {
  font-size: 0.875rem;
  color: #6b7280;
}

.analytics-details-item span:last-child {
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
}

.analytics-qr-preview {
  display: flex;
  justify-content: center;
}

.analytics-qr-preview-container {
  background-color: white;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
}

.analytics-qr-preview img {
  width: 6rem;
  height: 6rem;
}

.analytics-table {
  overflow: hidden;
}

.analytics-table table {
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.analytics-table thead {
  background-color: #f9fafb;
}

.analytics-table th {
  padding: 0.75rem 1.5rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.analytics-table td {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  color: #111827;
  border-top: 1px solid #e5e7eb;
}

.analytics-table tbody tr:hover {
  background-color: #f9fafb;
}

.analytics-device-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.analytics-device-badge.mobile {
  background-color: #dbeafe;
  color: #1e40af;
}

.analytics-device-badge.tablet {
  background-color: #f3e8ff;
  color: #7c3aed;
}

.analytics-device-badge.desktop {
  background-color: #dcfce7;
  color: #166534;
}

.analytics-device-badge.unknown {
  background-color: #f3f4f6;
  color: #374151;
}

.analytics-empty-state {
  text-align: center;
  padding: 2rem 0;
}

.analytics-empty-state i {
  font-size: 3rem;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.analytics-empty-state p {
  color: #6b7280;
  margin: 0;
}

.analytics-nav {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
}

.analytics-nav-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.analytics-nav-btn.secondary {
  border: 1px solid #d1d5db;
  color: #374151;
  background-color: white;
}

.analytics-nav-btn.secondary:hover {
  background-color: #f9fafb;
}

.analytics-nav-btn.primary {
  border: 1px solid transparent;
  color: white;
  background-color: #2563eb;
}

.analytics-nav-btn.primary:hover {
  background-color: #1d4ed8;
}

.analytics-nav-btn i {
  margin-right: 0.5rem;
}

.analytics-qr-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .analytics-qr-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .analytics-qr-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.analytics-qr-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
}

.analytics-qr-card h4 {
  font-weight: 500;
  color: #111827;
  margin-bottom: 0.5rem;
}

.analytics-qr-card p {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.analytics-qr-card a {
  font-size: 0.875rem;
  color: #2563eb;
  text-decoration: none;
}

.analytics-qr-card a:hover {
  color: #1d4ed8;
}
