/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* Tema Dark (padrão) */
body.dark {
    background-color: #1a1a1a;
    color: #fff;
}

/* Tema Claro */
body.light {
    background-color: #fff;
    color: #333;
}

/* Corrigir texto branco no modo claro */
body.light .text-white,
body.light .white-text,
body.light .text-light,
body.light .gradient-text,
body.light .item-title,
body.light .section-title,
body.light h1, body.light h2, body.light h3, body.light h4, body.light h5, body.light h6 {
    color: #333 !important;
}

body.light .search-button,
body.light .header-search .search-button,
body.light .btn-primary,
body.light .action-btn.primary {
    color: white !important;
}

body.light .action-btn.secondary {
    color: #333 !important;
}

body.light .mobile-menu-toggle span {
    background: #333;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.modern-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

body.dark .modern-header {
    background: rgba(10, 10, 10, 0.95);
}

body.light .modern-header {
    background: rgba(255, 255, 255, 0.95);
}

.dark .header {
    background-color: #2a2a2a;
    border-bottom: 1px solid #444;
}

.light .header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.light .modern-logo {
    color: #333;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #ff4500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.dark .nav-menu a {
    color: #fff;
}

.light .nav-menu a {
    color: #333;
}

.nav-menu a:hover {
    background-color: #ff4500;
    color: #fff;
}

/* Botões Modernos */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.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:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.5);
    color: #667eea;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.btn-success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.btn-success:hover {
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.btn-warning:hover {
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 8px;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 15px;
}

.btn-social {
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-size: 0.9rem;
}

.btn-social.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
    box-shadow: 0 4px 15px rgba(29, 161, 242, 0.3);
}

.btn-social.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-social.facebook {
    background: linear-gradient(135deg, #4267b2 0%, #365899 100%);
    box-shadow: 0 4px 15px rgba(66, 103, 178, 0.3);
}

/* Responsividade dos botões */
@media (max-width: 768px) {
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 0.8rem 1.6rem;
        font-size: 1rem;
    }
    
    .btn-small {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Toggle tema */
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dark .theme-toggle {
    color: #fff;
}

.light .theme-toggle {
    color: #333;
}

.theme-toggle:hover {
    background-color: #ff4500;
    color: #fff;
}

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

.main-content {
    margin-top: 80px;
    padding: 2rem 0;
}

/* Seção de pesquisa */
.search-section {
    text-align: center;
    margin-bottom: 3rem;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
}

.dark .search-input {
    background-color: #2a2a2a;
    color: #fff;
    border: 2px solid #444;
}

.light .search-input {
    background-color: #f8f9fa;
    color: #333;
    border: 2px solid #dee2e6;
}

.search-input:focus {
    border-color: #ff4500;
    box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.1);
}

/* Filtros */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark .filter-select {
    background-color: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
}

.light .filter-select {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

/* Grid de itens */
.items-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Responsivo para grid */
@media (min-width: 768px) {
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Card de item */
.item-card {
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
}

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

.item-description {
    flex: 1;
    margin-bottom: 1rem;
}

.dark .item-card {
    background-color: #2a2a2a;
    border: 1px solid #444;
}

.light .item-card {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.item-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
    border: 3px solid #ff4500;
}

.item-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-align: center;
}

.item-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.8;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Fallback para navegadores que não suportam line-clamp */
    max-height: 4.5em;
    line-height: 1.5em;
}

.item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.tag {
    background-color: #ff4500;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Estatísticas Compactas */
.item-stats-compact {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
}

.stat-mini {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.stat-mini:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-mini.views {
    border-color: rgba(79, 172, 254, 0.3);
}

.stat-mini.views:hover {
    border-color: rgba(79, 172, 254, 0.5);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.15);
}

.stat-mini.rating {
    border-color: rgba(255, 193, 7, 0.3);
}

.stat-mini.rating:hover {
    border-color: rgba(255, 193, 7, 0.5);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.15);
}

.stat-icon-mini {
    font-size: 0.8rem;
    opacity: 0.9;
}

.stat-value-mini {
    font-weight: 600;
    color: #fff;
    font-size: 0.75rem;
}

/* Estatísticas Modernas (mantidas para compatibilidade) */
.item-stats-modern {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.stat-badge:hover::before {
    left: 100%;
}

.stat-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.stat-badge.views {
    border-color: rgba(79, 172, 254, 0.3);
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
}

.stat-badge.views:hover {
    border-color: rgba(79, 172, 254, 0.5);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.2);
}

.stat-badge.rating {
    border-color: rgba(255, 193, 7, 0.3);
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
}

.stat-badge.rating:hover {
    border-color: rgba(255, 193, 7, 0.5);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.2);
}

.stat-icon-modern {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.stat-badge.views .stat-icon-modern {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.stat-badge.rating .stat-icon-modern {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.stat-label {
    font-size: 0.7rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-number {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.stat-reviews {
    font-size: 0.7rem;
    opacity: 0.6;
    font-weight: 400;
}

.promoted-badge-modern {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
    animation: promoPulse 2s ease-in-out infinite;
}

.promoted-icon {
    font-size: 0.8rem;
    animation: promoSpin 3s linear infinite;
}

.promoted-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

/* Responsividade para estatísticas compactas */
@media (max-width: 768px) {
    .item-stats-compact {
        gap: 0.4rem;
        margin-bottom: 0.8rem;
    }
    
    .stat-mini {
        padding: 0.2rem 0.4rem;
        gap: 0.25rem;
        font-size: 0.7rem;
    }
    
    .stat-icon-mini {
        font-size: 0.75rem;
    }
    
    .stat-value-mini {
        font-size: 0.7rem;
    }
    
    .promoted-badge-modern {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
        top: 8px;
        right: 8px;
    }
}

/* Responsividade para estatísticas modernas */
@media (max-width: 768px) {
    .item-stats-modern {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .stat-badge {
        padding: 0.4rem 0.6rem;
        gap: 0.4rem;
    }
    
    .stat-icon-modern {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .stat-number {
        font-size: 0.8rem;
    }
    
    .promoted-badge-modern {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
        top: 8px;
        right: 8px;
    }
}

@media (max-width: 480px) {
    .item-stats-compact {
        gap: 0.3rem;
        margin-bottom: 0.6rem;
    }
    
    .stat-mini {
        padding: 0.15rem 0.35rem;
        gap: 0.2rem;
        font-size: 0.65rem;
        border-radius: 6px;
    }
    
    .stat-icon-mini {
        font-size: 0.7rem;
    }
    
    .stat-value-mini {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .item-stats-modern {
        gap: 0.4rem;
    }
    
    .stat-badge {
        padding: 0.3rem 0.5rem;
        border-radius: 10px;
    }
    
    .stat-icon-modern {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
    
    .stat-content {
        gap: 0.05rem;
    }
    
    .stat-label {
        font-size: 0.6rem;
    }
    
    .stat-number {
        font-size: 0.75rem;
    }
    
    .stat-reviews {
        font-size: 0.65rem;
    }
}

/* Estatísticas antigas (compatibilidade) */
.item-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Seções da página */
.section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #ff4500;
}

body.light .section-title {
    color: #333 !important;
}

/* Formulários */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 10px;
}

.dark .form-container {
    background-color: #2a2a2a;
    border: 1px solid #444;
}

.light .form-container {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.dark .form-input,
.dark .form-textarea,
.dark .form-select {
    background-color: #1a1a1a;
    color: #fff;
    border: 1px solid #444;
}

.light .form-input,
.light .form-textarea,
.light .form-select {
    background-color: #fff;
    color: #333;
    border: 1px solid #dee2e6;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #ff4500;
    box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Alertas */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}
.header-search {
    flex: 1;
    max-width: 400px;
    margin: 0 1rem;
}

.mobile-search-container {
    display: none;
    width: 100%;
    padding: 1rem;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 110px;
    left: 0;
    right: 0;
    z-index: 999;
}

.search-filters-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem 2rem;
    margin-top: 100px;
}

@media (max-width: 992px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .desktop-search {
        display: none;
    }
    
    .mobile-search-container {
        display: block;
    }
    
    .search-filters-container {
        margin-top: 150px;
    }
}

.header-search .search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.header-search .search-input-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.header-search .search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    padding: 0.5rem 0;
    width: 100%;
}

.header-search .search-input::placeholder {
    color: var(--text-secondary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.preview-notice {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.preview-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.preview-content strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.preview-content p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 500px;
    width: 90%;
    max-height: 90%;
    overflow-y: auto;
    border-radius: 10px;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #444;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ff4500;
}

.modal-body {
    padding: 1.5rem;
}

/* Tabelas */
.table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #444;
}

.table th {
    font-weight: bold;
    background-color: #ff4500;
    color: #fff;
}

.dark .table td {
    border-bottom-color: #444;
}

.light .table td {
    border-bottom-color: #dee2e6;
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-item.view-all {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 5px;
    padding-top: 10px;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.search-filters-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem 2rem;
    margin-top: 100px;
}

@media (max-width: 992px) {
    .search-filters-container {
        margin-top: 140px;
    }
}

.dark .pagination a {
    background-color: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
}

.light .pagination a {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

.pagination a:hover,
.pagination .current {
    background-color: #ff4500;
    color: #fff;
}

/* Footer */
.footer {
    margin-top: 4rem;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #444;
}

.dark .footer {
    background-color: #2a2a2a;
    border-top-color: #444;
}

.light .footer {
    background-color: #f8f9fa;
    border-top-color: #dee2e6;
}

/* Responsividade */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-content {
        margin-top: 120px;
    }
    
    .filters {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .item-card {
        padding: 1rem;
    }
    
    .form-container {
        padding: 1rem;
    }
    
    .modern-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
        z-index: 999;
    }
    
    .modern-nav .nav-link,
    .modern-nav .dropdown-btn {
        width: 100%;
        padding: 0.75rem 1rem;
        justify-content: flex-start;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background: var(--text-primary);
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .light .mobile-menu-toggle span {
        background: #333;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .header-actions .action-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff4500;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Utilitários */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-1 { gap: 1rem; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
.p-1 { padding: 1rem; }