/*===========================
            HEADER  
=============================*/

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    padding: 0.75rem 0;
    min-height: 80px;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

/* Logo e Brand */
.navbar-brand {
    font-weight: 700;
    color: var(--black) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--black);
}

/* Mobile Toggle */
.navbar-toggler {
    border: none !important;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(249, 176, 0, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Navigation Links */
.navbar-nav .nav-link {
    color: var(--medium-gray) !important;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    border-radius: 8px;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-yellow) !important;
    background: rgba(249, 176, 0, 0.1);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: var(--black) !important;
    background: var(--primary-yellow);
    font-weight: 600;
}

.navbar-nav .nav-link i {
    font-size: 0.9rem;
    opacity: 0.8;
}

.navbar-nav .nav-link span {
    font-size: 0.95rem;
}

/* Dropdown Melhorado */
.dropdown-menu {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 1rem 0;
    margin-top: 0.5rem;
    min-width: 280px;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background: rgba(249, 176, 0, 0.1);
    color: var(--primary-yellow);
    transform: translateX(5px);
}

.dropdown-item-content {
    display: flex;
    flex-direction: column;
}

.dropdown-item-title {
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.25rem;
}

.dropdown-item-desc {
    color: var(--medium-gray);
    font-size: 0.8rem;
}

/* Search Container */
.search-container {
    position: relative;
}

.search-input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    box-shadow: 0 4px 20px rgba(249, 176, 0, 0.3);
    transform: translateY(-1px);
}

.search-input {
    border: none;
    padding: 0.75rem 1rem;
    background: var(--white);
    color: var(--black);
    font-size: 0.9rem;
}

.search-input:focus {
    border: none;
    box-shadow: none;
    background: var(--white);
}

.search-input::placeholder {
    color: var(--medium-gray);
}

.search-btn {
    background: var(--primary-yellow);
    border: none;
    color: var(--black);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--black);
    color: var(--primary-yellow);
}

/* Cart Button */
.cart-container {
    position: relative;
}

.cart-btn {
    background: transparent;
    border: 2px solid var(--primary-yellow);
    color: var(--primary-yellow);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cart-btn:hover {
    background: var(--primary-yellow);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(249, 176, 0, 0.3);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--black);
    color: var(--primary-yellow);
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    animation: pulse 2s infinite;
    display: none;
}

.cart-badge.show {
    display: block;
}

/* User Actions */
.guest-actions .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.guest-actions .btn-outline-primary {
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
}

.guest-actions .btn-outline-primary:hover {
    background: var(--primary-yellow);
    color: var(--black);
    transform: translateY(-2px);
}

.guest-actions .btn-primary {
    background: var(--black);
    border-color: var(--black);
    color: var(--primary-yellow);
}

.guest-actions .btn-primary:hover {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--black);
    transform: translateY(-2px);
}

/* User Menu */
.user-menu-btn {
    background: transparent;
    border: 2px solid var(--border-gray);
    color: var(--black);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.user-menu-btn:hover {
    border-color: var(--primary-yellow);
    background: rgba(249, 176, 0, 0.1);
}

.user-avatar {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-yellow);
}

.user-name {
    font-weight: 600;
    color: var(--black);
}

/* User Dropdown */
.user-dropdown {
    min-width: 280px;
}

.dropdown-header {
    padding: 1rem 1.5rem;
    background: rgba(249, 176, 0, 0.1);
    margin-bottom: 0.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar-large {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-yellow);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name-large {
    font-weight: 600;
    color: var(--black);
    font-size: 1rem;
}

.user-email {
    color: var(--medium-gray);
    font-size: 0.85rem;
}

/* Navbar Spacer */
.navbar-spacer {
    height: 80px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .navbar-nav {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-gray);
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        padding: 1rem !important;
    }
    
    .navbar-actions {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-gray);
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .guest-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .guest-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .cart-container {
        order: -1;
    }
    
    .user-menu {
        width: 100%;
    }
    
    .user-menu-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-logo {
        height: 35px;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    .navbar-spacer {
        height: 70px;
    }
}

/* Animations */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.navbar {
    animation: slideDown 0.5s ease-out;
}

/* Loading States */
.navbar.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Focus States for Accessibility */
.navbar-nav .nav-link:focus,
.btn:focus,
.form-control:focus {
    outline: 2px solid var(--primary-yellow);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .navbar {
        background: var(--white) !important;
        border-bottom: 2px solid var(--black);
    }
    
    .navbar-nav .nav-link {
        color: var(--black) !important;
    }
    
    .navbar-nav .nav-link:hover {
        background: var(--black);
        color: var(--white) !important;
    }
}

.search-container {
    min-width: 220px; /* Mantém a largura mínima para não achatar */
    position: relative;
}

.search-input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    box-shadow: 0 4px 20px rgba(249, 176, 0, 0.3);
    transform: translateY(-1px);
}

.search-input {
    border: none;
    padding: 0.75rem 1rem;
    background: var(--white);
    color: var(--black);
    font-size: 0.9rem;
}

.search-input:focus {
    /* 👇 MUDANÇA: Removemos a alteração de 'width' */
    border: none;
    box-shadow: none;
    background: var(--white);
}


/* ========================================
                 FOOTER 
===========================================*/

.footer {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footerGrid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(249,176,0,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23footerGrid)"/></svg>');
    opacity: 0.3;
}

.footer > .container {
    position: relative;
    z-index: 2;
}

.footer-brand img {
    /* filter: brightness(0) invert(1); */
    transition: transform 0.3s ease;
}

.footer-brand:hover img {
    transform: scale(1.05);
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-yellow);
    transform: translateX(5px);
}

.social-links .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--primary-yellow);
    color: var(--black);
    transform: translateY(-3px);
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: 8px 0 0 8px;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-yellow);
    color: var(--white);
    box-shadow: none;
}

.newsletter-form .btn {
    border-radius: 0 8px 8px 0;
    border: 1px solid var(--primary-yellow);
}

.app-store-btn {
    display: inline-block;
    transition: transform 0.3s ease;
}

.app-store-btn:hover {
    transform: scale(1.05);
}

.app-store-btn img {
    border-radius: 8px;
    filter: invert(1);
}

.footer-legal a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.75;
    transition: all 0.3s ease;
}

.footer-legal a:hover {
    opacity: 1;
    color: var(--primary-yellow);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-yellow);
    color: var(--black);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(249, 176, 0, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 176, 0, 0.4);
}

/* Responsivo */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 2rem;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 1rem !important;
        text-align: center;
    }
    
    .social-links .d-flex {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer .col-lg-4,
.footer .col-lg-2 {
    animation: fadeInUp 0.6s ease-out;
}

.footer .col-lg-4 {
    animation-delay: 0.1s;
}

.footer .col-lg-2:nth-child(2) {
    animation-delay: 0.2s;
}

.footer .col-lg-2:nth-child(3) {
    animation-delay: 0.3s;
}

.footer .col-lg-2:nth-child(4) {
    animation-delay: 0.4s;
}

.footer .col-lg-2:nth-child(5) {
    animation-delay: 0.5s;
}

/* ========================================
    VARIÁVEIS CSS - PALETA DE CORES 
===========================================*/

:root {
  --primary-yellow: #f9b000;
  --black: #000000;
  --white: #ffffff;
  --dark-gray: #1a1a1a;
  --light-gray: #f0f0f0;
  --medium-gray: #666666;
  --border-gray: #e0e0e0;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --shadow-dark: rgba(0, 0, 0, 0.25);
  --gradient-yellow: linear-gradient(135deg, #f9b000, #ffcc33);
  --gradient-dark: linear-gradient(135deg, #1a1a1a, #333333);
}

/*======================== 
    CONFIGURAÇÃO GLOBAL 
==========================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
  overflow-x: hidden;
}

/* TIPOGRAFIA */
h1, h2, h3, h4, h5, h6, p {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--black);
}

h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.75rem; }
h5 { font-size: 1.5rem; }
h6 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--medium-gray);
}

/*========================= 
      BOTÕES MODERNOS 
===========================*/
.btn {
  border-radius: 12px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-yellow);
  color: var(--black);
  box-shadow: 0 4px 15px rgba(249, 176, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(249, 176, 0, 0.4);
  color: var(--black);
}

.btn-outline-primary {
  border: 2px solid var(--primary-yellow);
  color: var(--primary-yellow);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-yellow);
  color: var(--black);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--gradient-dark);
  color: var(--white);
  box-shadow: 0 4px 15px var(--shadow-medium);
}

.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-dark);
  color: var(--white);
}

/*===============================
    CARDS MODENOS COM SOMBRAS 
=================================*/

.card {
  border: none;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 4px 20px var(--shadow-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-yellow);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px var(--shadow-medium);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-img-top {
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-body {
  padding: 2rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--black);
}

.card-text {
  color: var(--medium-gray);
  margin-bottom: 1.5rem;
}

/*=========================== 
    NAVEGAÇÃO MINIMALISTA 
=============================*/

.navbar {
  background: var(--white);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px var(--shadow-light);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--black) !important;
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-brand img {
  height: 40px;
  width: auto;
}

.nav-link {
  font-weight: 500;
  color: var(--dark-gray) !important;
  padding: 0.75rem 1.25rem !important;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-yellow);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--primary-yellow) !important;
  background: rgba(249, 176, 0, 0.1);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* SEÇÃO MODERNA */
.hero-section {
  background: var(--gradient-dark);
  color: var(--white);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(249,176,0,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--white), var(--primary-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* SEÇÃO COM ESPAÇAMENTOS */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.125rem;
  color: var(--medium-gray);
}

/*=============================
     FORMULÁRIOS MODERNOS 
===============================*/

.form-control {
  border: 2px solid var(--border-gray);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--white);
}

.form-control:focus {
  border-color: var(--primary-yellow);
  box-shadow: 0 0 0 0.2rem rgba(249, 176, 0, 0.25);
  background: var(--white);
}

.form-label {
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.5rem;
}

/*========================== 
    SIDEBAR ADMINISTRATIVO 
============================*/

.sidebar {
  background: var(--gradient-dark);
  color: var(--white);
  min-height: 100vh;
  padding: 2rem 0;
  box-shadow: 4px 0 20px var(--shadow-light);
}

.sidebar .nav-link {
  color: var(--white) !important;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin: 0.25rem 1rem;
  transition: all 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background: var(--primary-yellow);
  color: var(--black) !important;
  transform: translateX(8px);
}

/* ANIMAÇÕES E EFEITOS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.pulse-animation {
  animation: pulse 2s infinite;
}

/* Utilitários */
.text-primary {
  color: var(--primary-yellow) !important;
}

.bg-primary {
  background: var(--gradient-yellow) !important;
}

.bg-dark {
  background: var(--dark-gray) !important;
}

.border-primary {
  border-color: var(--primary-yellow) !important;
}

.shadow-custom {
  box-shadow: 0 8px 30px var(--shadow-medium);
}

.rounded-custom {
  border-radius: 16px;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  border: 3px solid rgba(249, 176, 0, 0.3);
  border-radius: 50%;
  border-top: 3px solid var(--primary-yellow);
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .section {
    padding: 3rem 0;
  }
}

/* Efeitos especiais para elementos interativos */
.interactive-element {
  position: relative;
  overflow: hidden;
}

.interactive-element::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(249, 176, 0, 0.3) 0%, transparent 70%);
  transition: all 0.6s ease;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.interactive-element:hover::after {
  width: 300px;
  height: 300px;
}

/* ==================================
     Elementos de progresso 
=====================================*/
.progress {
  height: 8px;
  border-radius: 4px;
  background: var(--light-gray);
}

.progress-bar {
  background: var(--gradient-yellow);
  border-radius: 4px;
}

/* Estados de hover para cards de curso */
.course-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 60px var(--shadow-dark);
}

/* Elementos de rating */
.rating {
  color: var(--primary-yellow);
  font-size: 1.125rem;
}

.rating .star {
  transition: transform 0.2s ease;
}

.rating:hover .star {
  transform: scale(1.1);
}

/* =====================================
        PÁGINA DE AUTENTICAÇÃO
=======================================*/

.auth-page {
    background: linear-gradient(135deg, var(--light-gray), var(--white));
    min-height: 100vh;
}

.auth-section {
    padding: 2rem 0;
}

.auth-container {
    max-width: 900px;
    margin: 0 auto;
}

.auth-form-container {
    padding: 3rem 2.5rem;
    background: var(--white);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-logo img {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 1rem;
    margin-bottom: 0;
}

/* ========================================
                FORM STYLES
   ======================================== */

.form-floating {
    position: relative;
}

.form-floating input {
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-floating input:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 0.2rem rgba(249, 176, 0, 0.25);
}

.form-floating label {
    padding-left: 3rem;
    color: var(--medium-gray);
    font-weight: 500;
}

.form-floating.focused label {
    color: var(--primary-yellow);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--medium-gray);
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-yellow);
}

.form-options {
    font-size: 0.9rem;
}

.form-check-input:checked {
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
}

.forgot-password {
    color: var(--primary-yellow);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: var(--dark-gray);
    text-decoration: underline;
}

/* ========================================
   DIVIDER AND SOCIAL LOGIN
   ======================================== */

.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-gray);
}

.divider span {
    background: var(--white);
    padding: 0 1rem;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.social-login .btn {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-login .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.auth-link {
    color: var(--primary-yellow);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--dark-gray);
}

/* ========================================
   VISUAL PANEL STYLES
   ======================================== */

.auth-visual {
    background: linear-gradient(135deg, var(--dark-gray), var(--black));
    padding: 3rem 2.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-yellow), transparent);
    opacity: 0.1;
}

.auth-visual-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.auth-visual img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

/* ========================================
   STATISTICS CARDS
   ======================================== */

.auth-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat-card {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 100px;
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--primary-yellow);
    margin-bottom: 0.5rem;
}

.stat-info h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--white);
}

.stat-info p {
    font-size: 0.8rem;
    margin: 0;
    opacity: 0.8;
}

/* ========================================
   TESTIMONIAL
   ======================================== */

.auth-testimonial {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-testimonial blockquote {
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.auth-testimonial cite {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 500;
}

/* ========================================
   ANIMATIONS
   ======================================== */

.shake {
    animation: shake 0.6s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 991px) {
    .auth-form-container {
        padding: 2rem 1.5rem;
    }

    .auth-title {
        font-size: 1.75rem;
    }

    .auth-stats {
        justify-content: center;
    }

    .stat-card {
        min-width: 80px;
        padding: 0.75rem;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .auth-section {
        padding: 1rem 0;
    }

    .auth-form-container {
        padding: 1.5rem 1rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .form-floating input {
        padding: 0.875rem 0.875rem 0.875rem 2.5rem;
    }

    .form-floating label {
        padding-left: 2.5rem;
    }
}


/* =======================
      CERTIFICADO 
======================== */

 .certificates-main {
            min-height: 100vh;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            padding-top: 2rem;
        }
        
        .page-header {
            background: var(--white);
            border-radius: 20px;
            padding: 2rem;
            margin-bottom: 2rem;
            box-shadow: 0 10px 30px var(--shadow-light);
        }
        
        .certificates-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 2rem;
        }
        
        .certificate-card {
            background: var(--white);
            border-radius: 20px;
            padding: 2rem;
            text-align: center;
            box-shadow: 0 10px 30px var(--shadow-light);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .certificate-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-yellow), #ffcc33);
        }
        
        .certificate-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px var(--shadow-medium);
        }
        
        .certificate-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, var(--primary-yellow), #ffcc33);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
            font-size: 2rem;
            color: var(--black);
            position: relative;
        }
        
        .certificate-icon::after {
            content: '';
            position: absolute;
            inset: -4px;
            border-radius: 50%;
            background: linear-gradient(45deg, var(--primary-yellow), #ffcc33, var(--primary-yellow));
            z-index: -1;
            opacity: 0.3;
        }
        
        .certificate-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--black);
            margin-bottom: 0.5rem;
        }
        
        .certificate-details {
            color: var(--medium-gray);
            margin-bottom: 1.5rem;
        }
        
        .certificate-actions {
            display: flex;
            gap: 0.5rem;
            justify-content: center;
        }
        
        .certificate-preview {
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            border: 2px dashed var(--border-gray);
            border-radius: 16px;
            padding: 3rem 2rem;
            margin: 1rem 0;
            position: relative;
        }
        
        .certificate-template {
            background: var(--white);
            border-radius: 12px;
            padding: 2rem;
            box-shadow: 0 5px 15px var(--shadow-light);
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        
        .certificate-template::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 8px;
            background: linear-gradient(90deg, var(--primary-yellow), #ffcc33, var(--primary-yellow));
        }
        
        .certificate-template::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 8px;
            background: linear-gradient(90deg, var(--primary-yellow), #ffcc33, var(--primary-yellow));
        }
        
        .certificate-logo {
            width: 60px;
            height: 60px;
            margin: 0 auto 1rem;
        }
        
        .certificate-template h3 {
            color: var(--black);
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }
        
        .certificate-template h4 {
            color: var(--primary-yellow);
            font-size: 1.25rem;
            margin-bottom: 0.5rem;
        }
        
        .certificate-template p {
            color: var(--medium-gray);
            margin-bottom: 0.5rem;
        }
        
        .empty-state {
            text-align: center;
            padding: 4rem 2rem;
            color: var(--medium-gray);
        }
        
        .empty-state i {
            font-size: 4rem;
            margin-bottom: 1rem;
            opacity: 0.5;
        }
        
        @media (max-width: 768px) {
            .certificates-grid {
                grid-template-columns: 1fr;
            }
            
            .certificate-card {
                padding: 1.5rem;
            }
            
            .certificate-actions {
                flex-direction: column;
            }
        }

/*==================================
     PÁGINA PERFIL DO USUÁRIO 
====================================*/

.profile-main {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding-top: 2rem;
}

/* Profile Sidebar */
.profile-sidebar {
    position: sticky;
    top: 100px;
}

.profile-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px var(--shadow-light);
    margin-bottom: 1.5rem;
    text-align: center;
}

.profile-avatar-section {
    margin-bottom: 1rem;
}

.profile-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-yellow);
    transition: transform 0.3s ease;
}

.profile-avatar:hover img {
    transform: scale(1.05);
}

.avatar-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary-yellow);
    color: var(--black);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid var(--white);
}

.avatar-overlay:hover {
    background: var(--black);
    color: var(--primary-yellow);
    transform: scale(1.1);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.profile-email {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Profile Navigation */
.profile-nav {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px var(--shadow-light);
}

.profile-nav .nav-link {
    color: var(--medium-gray);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
}

.profile-nav .nav-link:hover {
    background: rgba(249, 176, 0, 0.1);
    color: var(--primary-yellow);
    transform: translateX(5px);
}

.profile-nav .nav-link.active {
    background: var(--primary-yellow);
    color: var(--black);
    font-weight: 600;
}

/* Content Cards */
.profile-content-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-light);
    margin-bottom: 2rem;
    overflow: hidden;
}

.profile-content-card .card-header {
    background: linear-gradient(135deg, var(--primary-yellow), #ffcc33);
    color: var(--black);
    padding: 2rem;
    border-bottom: none;
}

.profile-content-card .card-header h3 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.profile-content-card .card-header p {
    margin-bottom: 0;
    opacity: 0.8;
}

.profile-content-card .card-body {
    padding: 2rem;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Form Styles */
.form-label {
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 0.2rem rgba(249, 176, 0, 0.25);
    background: var(--white);
}

.btn {
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--black);
}

.btn-primary:hover {
    background: var(--black);
    border-color: var(--black);
    color: var(--primary-yellow);
    transform: translateY(-2px);
}

.btn-outline-secondary {
    border-color: var(--border-gray);
    color: var(--medium-gray);
}

.btn-outline-secondary:hover {
    background: var(--medium-gray);
    border-color: var(--medium-gray);
    color: var(--white);
}

.btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-outline-danger:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: var(--white);
}

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background: var(--border-gray);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak { background: #dc3545; width: 25%; }
.strength-fill.fair { background: #fd7e14; width: 50%; }
.strength-fill.good { background: #ffc107; width: 75%; }
.strength-fill.strong { background: #198754; width: 100%; }

/* Stats Cards */
.courses-stats {
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.stat-card:hover {
    border-color: var(--primary-yellow);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-light);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-yellow), #ffcc33);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--black);
}

.stat-info h4 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.stat-info p {
    color: var(--medium-gray);
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Course Cards */
.course-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 2px solid var(--border-gray);
    transition: all 0.3s ease;
}

.course-card:hover {
    border-color: var(--primary-yellow);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--shadow-light);
}

.course-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.course-thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 1rem;
}

.course-info h5 {
    margin-bottom: 0.5rem;
    color: var(--black);
}

.course-info p {
    margin-bottom: 0;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.course-progress {
    margin-bottom: 1rem;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background: var(--border-gray);
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-yellow), #ffcc33);
    border-radius: 4px;
}

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Certificate Grid */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.certificate-card {
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.certificate-card:hover {
    border-color: var(--primary-yellow);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-light);
}

.certificate-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-yellow), #ffcc33);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--black);
}

.certificate-card h5 {
    color: var(--black);
    margin-bottom: 0.5rem;
}

.certificate-card p {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Form Switches */
.form-check-input:checked {
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
}

.form-check-input:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 0.25rem rgba(249, 176, 0, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-main {
        padding-top: 1rem;
    }
    
    .profile-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .profile-card {
        padding: 1.5rem;
    }
    
    .profile-content-card .card-header,
    .profile-content-card .card-body {
        padding: 1.5rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .certificates-grid {
        grid-template-columns: 1fr;
    }
    
    .course-header {
        flex-direction: column;
        text-align: center;
    }
    
    .course-thumbnail {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .course-actions {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .profile-card {
        padding: 1rem;
    }
    
    .profile-content-card .card-header,
    .profile-content-card .card-body {
        padding: 1rem;
    }
    
    .profile-avatar img {
        width: 100px;
        height: 100px;
    }
    
    .avatar-overlay {
        width: 35px;
        height: 35px;
    }
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--medium-gray);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h4 {
    margin-bottom: 1rem;
    color: var(--medium-gray);
}

.empty-state p {
    margin-bottom: 2rem;
}

/* Loading States */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-gray);
    border-top: 4px solid var(--primary-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

