@import url('./notyf.css');

:root {
    --primary-color: 0, 141, 234;
    --secondary-color: 0, 120, 215;
    --hover-color: 5, 128, 209;
    --text-color: #1f2937; /* Gray 800 */
    --muted-text: #6b7280; /* Gray 500 */
    --background-color: #ffffff;
    --surface: #f9fafb; /* Gray 50 */
    --dark-bg: #0b1220; /* Darker for modern contrast */
}

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
   text-decoration: none;
}

.bg-primary {
    background-color: rgba(var(--primary-color), 1);
}

.text-primary {
    color: rgba(var(--primary-color), 1);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    background-image: linear-gradient(135deg, rgba(var(--primary-color), 1) 0%, rgba(var(--hover-color), 1) 100%);
    color: #ffffff;
    padding: 0.625rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(var(--primary-color), 0.25);
    font-weight: 600;
    font-size: 0.875rem;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 10px 20px -12px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.06);
    will-change: transform, filter;
}

.btn-primary:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
    box-shadow: 0 18px 28px -14px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(var(--primary-color), 0.28), 0 12px 22px -12px rgba(0,0,0,0.25);
}

.btn-primary:active {
    transform: translateY(0);
    filter: brightness(0.98);
    box-shadow: 0 8px 16px -10px rgba(0, 0, 0, 0.22);
}

.btn-primary:disabled,
.btn-primary[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary .bx {
    color: currentColor;
}

.bg-blue-600 { background-color: rgba(var(--primary-color), 1) !important; }
.bg-blue-700 { background-color: rgba(var(--hover-color), 1) !important; }
.text-blue-400 { color: rgba(var(--primary-color), 0.4) !important; }
.text-blue-500 { color: rgba(var(--primary-color), 1) !important; }
.text-blue-600 { color: rgba(var(--primary-color), 1) !important; }
.border-blue-300 { border-color: rgba(var(--primary-color), 0.3) !important; }
.border-blue-500 { border-color: rgba(var(--primary-color), 1) !important; }
.hover\:bg-blue-50:hover { background-color: rgba(var(--primary-color), 0.05) !important; }
.hover\:bg-blue-300:hover { background-color: rgba(var(--primary-color), 0.3) !important; }
.hover\:bg-blue-700:hover { background-color: rgba(var(--hover-color), 1) !important; }
.hover\:text-blue-300:hover { color: rgba(var(--primary-color), 0.3) !important; }
.hover\:text-blue-500:hover { color: rgba(var(--primary-color), 1) !important; }
.hover\:border-blue-300:hover { border-color: rgba(var(--primary-color), 0.3) !important; }

/* Primary util: subtle background tint */
.bg-primary-50 { background-color: rgba(var(--primary-color), 0.06) !important; }

/* Metrics cards styles */
.metric-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 10px 20px -12px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.metric-card:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 2px 6px rgba(0,0,0,0.08), 0 16px 24px -12px rgba(0,0,0,0.18);
}
.metric-icon {
  width: 44px; height: 44px; border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  background-color: rgba(var(--primary-color), 0.12);
  color: rgba(var(--primary-color), 1);
  margin: 0 auto 0.5rem;
}
.metric-value {
  font-weight: 800;
  font-size: 1.5rem; /* text-2xl */
  color: rgba(var(--primary-color), 1);
}
.metric-label { color: #374151; /* gray-700 */ }

@media (min-width: 768px) {
  .metric-value { font-size: 1.875rem; } /* md:text-3xl */
}

/* List with icon bubble (influencer formats) */
.list-icon {
  width: 36px; height: 36px; border-radius: 9999px;
  background-color: rgba(var(--primary-color), 0.12);
  color: rgba(var(--primary-color), 1);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hover\:border-blue-500:hover { border-color: rgba(var(--primary-color), 1) !important; }

#typewriter {
    min-height: 1.2em;
    display: inline-block;
    width: 100%;
    text-align: center;
    overflow: hidden;
    text-decoration: underline;
}

.hero-cta {
    background-color: var(--dark-bg);
    margin-top: auto;
    padding: 0.75rem 0;
    font-size: 0.875rem;
}

.hero-cta a {
    color: rgba(var(--primary-color),1) !important;
}

.hero-cta a:hover {
    color: rgba(var(--hover-color),1) !important;
    text-decoration: underline;
}

.account-option {
    transition: all 0.2s ease;
}

.account-option:hover {
    transform: translateY(-1px);
}

.account-option input[type="radio"]:checked + div {
    color: inherit;
}

.account-option input[type="radio"]:checked ~ div .font-bold {
    color: inherit;
}

.account-option input[type="radio"]:checked {
    background-color: currentColor;
}

.account-option[data-type="company"]:hover {
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1);
}


.account-option.selected {
    border-color: currentColor;
    background-color: rgba(59, 130, 246, 0.05);
}


.account-icon {
    transition: all 0.2s ease;
}

.account-option.selected .account-icon {
    border-color: rgba(var(--primary-color), 1);
    background-color: rgba(var(--primary-color), 0.1);
}

.account-option.selected .account-icon i {
    color: rgba(var(--primary-color), 1);
}


.bg-dark {
    background-color: var(--dark-bg);
}

.transparent-nav {
    background-color: transparent !important; 
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent !important;
    transition: background-color .2s ease, backdrop-filter .2s ease, border-color .2s ease;
}

.transparent-nav .btn-primary {
    box-shadow: none;
}

footer {
    background-color: var(--dark-bg);
}

/* Sidebar Styles */
.sidebar-nav a.active {
    background-color: rgba(var(--primary-color), 0.1);
    color: rgba(var(--primary-color), 1);
}

.sidebar-nav a:hover {
    background-color: rgba(var(--primary-color), 0.05);
    color: rgba(var(--primary-color), 1);
}

/* Sidebar Dark Theme (match header color) */
#sidebar.bg-dark {
    background-color: var(--dark-bg);
}

#sidebar.bg-dark .sidebar-nav a {
    color: #e5e7eb;
}

#sidebar.bg-dark .sidebar-nav a:hover {
    background-color: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

#sidebar.bg-dark .sidebar-nav a.active {
    background-color: rgba(var(--primary-color), 0.18);
    color: rgba(var(--primary-color), 1);
}

#sidebar.bg-dark .bx {
    color: #e5e7eb;
}

#sidebar.bg-dark .text-gray-700 {
    color: #e5e7eb;
}

#sidebar.bg-dark .hover\:bg-gray-100:hover {
    background-color: rgba(255, 255, 255, 0.10);
}

#sidebar.bg-dark .hover\:bg-blue-50:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

#sidebar.bg-dark .hover\:text-blue-600:hover {
    color: rgba(var(--primary-color), 1);
}

/* Sidebar: general link color in dark */
#sidebar.bg-dark a {
    color: #e5e7eb;
}

#sidebar.bg-dark a:hover {
    color: #ffffff;
}

/* Sidebar: borders in dark */
#sidebar.bg-dark .border-gray-200,
#sidebar.bg-dark .border-gray-300,
#sidebar.bg-dark .border-purple-200 {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Sidebar: neutral text in dark */
#sidebar.bg-dark .text-gray-900,
#sidebar.bg-dark .text-gray-800,
#sidebar.bg-dark .text-gray-700 { color: #e5e7eb; }

#sidebar.bg-dark .text-gray-500,
#sidebar.bg-dark .text-gray-400 { color: #cbd5e1; }

/* Sidebar: blue backgrounds to subtle dark tints */
#sidebar.bg-dark .bg-blue-50 { background-color: rgba(255, 255, 255, 0.06); }
#sidebar.bg-dark .hover\:bg-blue-50:hover { background-color: rgba(255, 255, 255, 0.08); }
#sidebar.bg-dark .bg-blue-100 { background-color: rgba(255, 255, 255, 0.08); }

/* Sidebar: red hover on logout */
#sidebar.bg-dark .hover\:bg-red-50:hover { background-color: rgba(239, 68, 68, 0.12); }

/* Sidebar: white surfaces to dark */
#sidebar.bg-dark .bg-white { background-color: rgba(255, 255, 255, 0.06); }

/* Sidebar: admin gradient subtle in dark */
#sidebar.bg-dark .bg-gradient-to-r { background-image: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); }

/* Sidebar: disponibilidade (status online/offline) em dark */
#sidebar.bg-dark .bg-green-100 { background-color: rgba(16, 185, 129, 0.15); }
#sidebar.bg-dark .text-green-800 { color: #10b981; }
#sidebar.bg-dark .hover\:bg-green-50:hover { background-color: rgba(16, 185, 129, 0.10); }

#sidebar.bg-dark .bg-red-100 { background-color: rgba(239, 68, 68, 0.15); }
#sidebar.bg-dark .text-red-800 { color: #ef4444; }
#sidebar.bg-dark .hover\:bg-red-50:hover { background-color: rgba(239, 68, 68, 0.12); }

/* Sidebar: ajustes de púrpura em dark (admin menu) */
#sidebar.bg-dark .text-purple-900,
#sidebar.bg-dark .text-purple-800,
#sidebar.bg-dark .text-purple-600 { color: #d8b4fe; }
#sidebar.bg-dark .hover\:bg-purple-100:hover { background-color: rgba(168, 85, 247, 0.15); }

/* Sidebar: input de copiar link em dark */
#sidebar.bg-dark #sidebarProfileUrl {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e5e7eb;
}
#sidebar.bg-dark #sidebarProfileUrl::placeholder { color: #94a3b8; }

/* Sidebar: card de compartilhar perfil em dark */
#sidebar.bg-dark .bg-white.rounded-lg.p-4.border { 
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

/* Mobile Menu Styles */
@media (max-width: 767px) {
    #sidebar {
        height: 100vh;
        overflow-y: auto;
        z-index: 50;
    }
}

/* Desktop Sidebar */
@media (min-width: 768px) {
    #sidebar {
        position: relative;
        z-index: 10;
    }
}

.hero-section {
    background-image: linear-gradient(180deg, rgba(11,18,32,0.85) 0%, rgba(11,18,32,0.6) 40%, rgba(11,18,32,0.5) 100%), url('../image/hero.png');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(1200px 400px at 10% 10%, rgba(0,0,0,0.35), transparent),
                radial-gradient(800px 300px at 90% 20%, rgba(0,0,0,0.25), transparent);
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero-section {
        background-position: 30% 20%;
        background-size: cover;
        background-attachment: scroll;
    }
    
    .hero-cta {
        padding: 0.5rem 0;
    }
    
    .hero-cta p {
        font-size: 0.75rem;
        line-height: 1.25rem;
    }
}

/* Typography refinements */
h1, h2, h3 {
    letter-spacing: -0.01em;
}

p {
    color: var(--muted-text);
}

/* Card modern look */
.card {
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 10px 20px -12px rgba(0,0,0,0.12);
}

/* Custom Checkbox Styles */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background-color: #ffffff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

input[type="checkbox"]:hover {
    border-color: rgba(var(--primary-color), 0.6);
    box-shadow: 0 0 0 3px rgba(var(--primary-color), 0.1);
}

input[type="checkbox"]:focus {
    outline: none;
    border-color: rgba(var(--primary-color), 1);
    box-shadow: 0 0 0 3px rgba(var(--primary-color), 0.2);
}

input[type="checkbox"]:checked {
    background-color: rgba(var(--primary-color), 1);
    border-color: rgba(var(--primary-color), 1);
    box-shadow: 0 0 0 3px rgba(var(--primary-color), 0.1);
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    animation: checkmark 0.2s ease;
}

@keyframes checkmark {
    0% {
        opacity: 0;
        transform: rotate(45deg) scale(0);
    }
    100% {
        opacity: 1;
        transform: rotate(45deg) scale(1);
    }
}

/* Disabled checkbox */
input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

input[type="checkbox"]:disabled:hover {
    border-color: #d1d5db;
    box-shadow: none;
}

/* Checkbox labels */
label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

label:hover {
    color: rgba(var(--primary-color), 0.8);
}

/* Custom checkbox container */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.checkbox-container:hover input[type="checkbox"] {
    border-color: rgba(var(--primary-color), 0.6);
}

.checkbox-container:hover input[type="checkbox"]:not(:checked) {
    box-shadow: 0 0 0 3px rgba(var(--primary-color), 0.05);
}

/* Tooltip styles with high z-index */
.group:hover .opacity-0 {
    z-index: 9999 !important;
}
/* Botão compacto utilitário para ações em listas/admin */
.btn-x {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem; /* espaço entre ícone e texto */
  padding: 0.25rem 0.5rem; /* compacto */
  font-size: 0.75rem; /* texto pequeno */
  line-height: 1rem;
  border-radius: 0.375rem; /* rounded-md */
  border: 1px solid #e5e7eb; /* gray-200 */
  background-color: #ffffff;
  color: #374151; /* gray-700 */
  text-decoration: none;
}

.btn-x:hover {
  background-color: #f9fafb; /* gray-50 */
  border-color: #cbd5e1; /* slate-300 */
}

.btn-x i {
  font-size: 0.9em;
}
/* Carrossel: ajustar slides para não exceder largura */
.testimonial-slide { min-width: 0; }

/* Steps section visual (How it Works) */
.step-badge {
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  background: rgba(var(--primary-color), 1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  box-shadow: 0 0 0 8px #ffffff, 0 10px 20px rgba(0,0,0,0.08);
}

/* Mobile refinements for steps */
@media (max-width: 640px) {
  .home-steps { padding-top: 0.5rem; padding-bottom: 0.5rem; }
  .home-steps .step-badge {
    width: 48px;
    height: 48px;
    font-size: 16px;
    box-shadow: 0 0 0 6px #ffffff, 0 6px 14px rgba(0,0,0,0.08);
    margin-top: -0.75rem; /* suaviza a sobreposição em telas pequenas */
  }
  .home-steps .step h3 { margin-top: 0.5rem; }
}