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

/* Flash Messages */
.flash-messages {
    margin: 20px 0;
}

.flash-message {
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-weight: 500;
}

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

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background: linear-gradient(135deg, #222831 0%, #393E46 50%, #222831 100%);
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Animações de Loading */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes progressAnimation {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Efeitos de hover e transições */
.search-btn:hover {
    background: #5a67d8 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.search-btn:disabled {
    background: #4a5568 !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.search-input:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Animação de digitação */
.typing-indicator {
    animation: pulse 1.5s ease-in-out infinite;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    overflow-x: hidden;
    width: 100%;
}

/* Header */
.header {
    background: rgba(34, 40, 49, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(57, 62, 70, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-left {
    flex: 1;
}

.header-right {
    display: flex;
    align-items: center;
}

/* Seção de Busca */
.search-section {
    margin: 30px 0;
    padding: 20px;
    background: rgba(34, 40, 49, 0.8) !important;
    border-radius: 12px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    min-height: 100px;
}

.search-container {
    max-width: 98%;
    width: 98%;
    margin: 0 auto;
    display: block !important;
}

.search-form {
    width: 100%;
    display: block !important;
    position: relative;
    z-index: 5;
}

.search-input-group {
    display: flex !important;
    align-items: center;
    background: rgba(45, 55, 72, 0.8);
    border: 2px solid #667eea !important;
    border-radius: 12px;
    padding: 4px;
    visibility: visible !important;
    position: relative;
}

.search-icon {
    color: #a0aec0;
    margin: 0 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.loading-spinner {
    margin: 0 15px;
    width: 16px;
    height: 16px;
    border: 2px solid #a0aec0;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 10px;
    color: #e2e8f0;
    font-size: 16px;
    outline: none;
}

.search-btn {
    background: #667eea !important;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.clear-search-btn {
    background: #ef4444;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
}

.progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    border-radius: 2px;
    animation: progressAnimation 2s ease-in-out infinite;
}

.search-status {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid #667eea;
    border-radius: 6px;
    color: #a0aec0;
    font-size: 14px;
    text-align: center;
}

/* Mensagem quando arquivo não existe */
.search-not-found {
    margin: 30px 0;
    padding: 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid #ef4444;
    border-radius: 12px;
    text-align: center;
}

.search-not-found .error-title {
    color: #ef4444;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.search-not-found .error-message {
    color: #e2e8f0;
    font-size: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(45, 55, 72, 0.8);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(74, 85, 104, 0.4);
}

.user-info.guest-user {
    justify-content: space-between;
    min-width: 280px;
}

.guest-welcome {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.welcome-text {
    color: #f7fafc;
    font-weight: 600;
    font-size: 16px;
}

.login-prompt {
    color: #a0aec0;
    font-size: 14px;
}

.login-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

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

.user-name {
    color: #f7fafc;
    font-weight: 600;
    font-size: 16px;
}

.user-stats {
    color: #a0aec0;
    font-size: 14px;
}

/* Contador de Arquivos no Header */
.header-files-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.header-files-counter::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.6s ease;
}

.header-files-counter:hover::before {
    left: 100%;
}

.header-files-counter:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
}

.header-files-counter i {
    font-size: 1rem;
    color: #667eea;
    filter: drop-shadow(0 0 6px rgba(102, 126, 234, 0.3));
}

.header-files-counter .counter-number {
    font-size: 1rem;
    font-weight: 700;
    color: #667eea;
    text-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
}

.header-files-counter .counter-label {
    font-size: 0.9rem;
    color: #cbd5e0;
    font-weight: 500;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-btn {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #c53030 0%, #9c2626 100%);
    transform: translateY(-1px);
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f7fafc;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
}

.logo i {
    color: #63b3ed;
}

.logo-image {
    height: 120px;
    width: auto;
    padding-top: 20px;
    margin-right: 5px;
    object-fit: contain;
}

.subtitle {
    font-size: 1.1rem;
    color: #a0aec0;
    font-weight: 400;
}

/* Stats */
.stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(34, 40, 49, 0.9);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(74, 85, 104, 0.3);
}

.stat-item i {
    color: #63b3ed;
    font-size: 1.2rem;
}

/* Grid de produtos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.8rem;
    margin-bottom: 3rem;
}

/* Media queries para responsividade */
@media (max-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image-container {
        height: 400px;
    }
}

/* Cards dos produtos */
.product-card {
    background: #393E46;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(57, 62, 70, 0.3);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-color: rgba(99, 179, 237, 0.5);
}

/* Container da imagem com overlay */
.product-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Overlay que aparece no hover */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image-container:hover .image-overlay {
    opacity: 1;
}

.overlay-btn {
    background: linear-gradient(135deg, #63b3ed 0%, #4299e1 100%);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.product-image-container:hover .overlay-btn {
    transform: translateY(0);
}

.overlay-btn:hover {
    background: linear-gradient(135deg, #4299e1 0%, #63b3ed 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 179, 237, 0.4);
    color: white;
    text-decoration: none;
}

/* Informações do produto */
.product-info {
    padding: 1.5rem 1.8rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    min-height: 80px;
}

.product-id {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.id-label {
    font-weight: 600;
    color: #a0aec0;
    font-size: 0.9rem;
}

.id-value {
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 500;
}



/* Ações do produto */
.product-actions {
    display: flex;
    justify-content: center;
}

.download-btn {
    background: linear-gradient(135deg, #38a169 0%, #48bb78 100%);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: 100%;
    text-align: center;
    display: block;
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(56, 161, 105, 0.4);
    text-decoration: none;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.download-btn.disabled {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
    cursor: not-allowed;
    opacity: 0.6;
}

.download-btn.disabled:hover {
    transform: none;
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
}

/* Contador de Arquivos */
.files-counter {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    padding: 0;
}

.counter-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    color: #e2e8f0;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.counter-content::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.6s ease;
}

.counter-content:hover::before {
    left: 100%;
}

.counter-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
}

.counter-content i {
    font-size: 1.2rem;
    color: #667eea;
    filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.3));
}

.counter-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: #667eea;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.counter-label {
    font-size: 1rem;
    color: #cbd5e0;
}

/* Responsividade do Contador */
@media (max-width: 600px) {
    .files-counter {
        margin: 1.5rem 0;
    }
    
    .counter-content {
        padding: 0.8rem 1.2rem;
        gap: 0.6rem;
        border-radius: 12px;
    }
    
    .counter-content i {
        font-size: 1rem;
    }
    
    .counter-number {
        font-size: 1rem;
    }
    
    .counter-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .files-counter {
        margin: 1rem 0;
    }
    
    .counter-content {
        padding: 0.7rem 1rem;
        gap: 0.5rem;
        border-radius: 10px;
    }
    
    .counter-content i {
        font-size: 0.9rem;
    }
    
    .counter-number {
        font-size: 0.9rem;
    }
    
    .counter-label {
        font-size: 0.8rem;
    }
}

/* Paginação Moderna */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding: 1rem;
    background: linear-gradient(145deg, rgba(45, 55, 72, 0.95) 0%, rgba(26, 32, 44, 0.95) 100%);
    border-radius: 16px;
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.3),
        0 6px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 0.8rem;
    border: 1px solid rgba(99, 179, 237, 0.2);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.pagination::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 179, 237, 0.5), transparent);
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 120px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination-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.6s;
}

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

.pagination-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

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

.pagination-btn.prev:hover {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    box-shadow: 0 12px 30px rgba(79, 172, 254, 0.4);
}

.pagination-btn.next {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 8px 20px rgba(67, 233, 123, 0.3);
}

.pagination-btn.next:hover {
    background: linear-gradient(135deg, #38f9d7 0%, #43e97b 100%);
    box-shadow: 0 12px 30px rgba(67, 233, 123, 0.4);
}

.pagination-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 200px;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.5rem;
    background: rgba(26, 32, 44, 0.6);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 85, 104, 0.3);
}

.page-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #cbd5e0;
    background: rgba(74, 85, 104, 0.6);
    border: 1px solid rgba(74, 85, 104, 0.4);
    position: relative;
    overflow: hidden;
}

.page-num::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(99, 179, 237, 0.3) 0%, transparent 70%);
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.page-num:hover::before {
    width: 100px;
    height: 100px;
}

.page-num:hover {
    background: linear-gradient(135deg, #63b3ed 0%, #4299e1 100%);
    transform: translateY(-2px) scale(1.05);
    color: white;
    box-shadow: 0 8px 20px rgba(99, 179, 237, 0.4);
    border-color: rgba(99, 179, 237, 0.6);
}

.page-num.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-weight: 700;
    box-shadow: 
        0 8px 25px rgba(240, 147, 251, 0.4),
        0 0 0 2px rgba(245, 87, 108, 0.3);
    border-color: rgba(245, 87, 108, 0.6);
    transform: scale(1.1);
}

.page-num.active:hover {
    transform: translateY(-2px) scale(1.15);
    box-shadow: 
        0 12px 30px rgba(240, 147, 251, 0.5),
        0 0 0 3px rgba(245, 87, 108, 0.4);
}

.page-dots {
    color: #718096;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 0 0.75rem;
    opacity: 0.7;
}

.pagination-text {
    color: #cbd5e0;
    font-size: 0.875rem;
    text-align: center;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(26, 32, 44, 0.6);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 85, 104, 0.3);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Responsividade da paginação moderna */
@media (max-width: 600px) {
    .pagination {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem;
        margin: 2rem 0;
        gap: 1.2rem;
        border-radius: 16px;
    }
    
    .pagination-btn {
        min-width: 100px;
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        border-radius: 12px;
    }
    
    .pagination-info {
        order: -1;
        margin-bottom: 0;
        min-width: auto;
        gap: 1rem;
    }
    
    .page-numbers {
        gap: 0.4rem;
        padding: 0.6rem;
        border-radius: 12px;
    }
    
    .page-num {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    
    .pagination-text {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .pagination {
        padding: 1rem;
        margin: 1.5rem 0;
        gap: 1rem;
        border-radius: 14px;
    }
    
    .pagination-btn {
        flex: 1;
        min-width: auto;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        border-radius: 10px;
    }
    
    .page-numbers {
        gap: 0.3rem;
        padding: 0.5rem;
        border-radius: 10px;
    }
    
    .page-num {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        border-radius: 8px;
    }
    
    .page-num.active {
        transform: scale(1.03);
    }
    
    .page-num.active:hover {
        transform: translateY(-1px) scale(1.06);
    }
    
    .pagination-text {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        border-radius: 8px;
    }
    
    .page-dots {
        font-size: 0.9rem;
        padding: 0 0.4rem;
    }
}


/*FOOTERRRRR*/




/* Footer */
.footer {
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    text-align: center;
    color: #a0aec0;
    margin-top: 2rem;
    border-top: 1px solid rgba(74, 85, 104, 0.3);
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    justify-content: center;
}

.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 40px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-link.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
}

.social-link.whatsapp::before {
    background: linear-gradient(135deg, #1faa59 0%, #0f6b47 100%);
}

.social-link.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #229ed9 100%);
    color: white;
}

.social-link.telegram::before {
    background: linear-gradient(135deg, #006ba6 0%, #1a7fb8 100%);
}

.social-link.community {
    background: rgba(102, 126, 234, 0.2);
}

.social-link.community::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:active {
    transform: translateY(-1px) scale(1.05);
}

/* Responsividade */
@media (max-width: 600px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
    }
    
    .search-btn {
        padding: 10px 18px !important;
        font-size: 14px !important;
    }
    
    .search-container {
        width: 95%;
    }
    
    .user-info {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .user-details {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .header-files-counter {
        padding: 0.5rem 0.8rem;
        gap: 0.4rem;
        border-radius: 10px;
        margin-top: 0.3rem;
        width: fit-content;
    }
    
    .header-files-counter i {
        font-size: 0.9rem;
    }
    
    .header-files-counter .counter-number {
        font-size: 0.9rem;
    }
    
    .header-files-counter .counter-label {
        font-size: 0.8rem;
    }
    
    .header-actions {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
    }
    
    .admin-btn, .logout-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 10px;
    }
    
    .header {
        padding: 1.5rem 0;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .logo-image {
        height: 80px;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-item {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .product-image-container {
        height: 450px;
    }
    
    .product-image {
        height: 100%;
        object-fit: cover;
    }
    
    .btn-download {
        font-size: 1rem;
        padding: 0.875rem 1.25rem;
        letter-spacing: 0.3px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .detail-item span:first-of-type {
        min-width: auto;
        font-size: 0.9rem;
    }
    
    .detail-link, .detail-value {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .products-grid {
        padding: 0 5px;
        gap: 1.25rem;
    }
    
    .product-card {
        margin: 0;
        border-radius: 12px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .header {
        padding: 1.25rem 0;
    }
    
    .logo {
        font-size: 1.75rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .logo-image {
        height: 60px;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .header-content {
        gap: 10px;
    }
    
    .user-info {
        gap: 0.8rem;
    }
    
    .header-files-counter {
        padding: 0.4rem 0.7rem;
        gap: 0.3rem;
        border-radius: 8px;
        margin-top: 0.2rem;
    }
    
    .header-files-counter i {
        font-size: 0.8rem;
    }
    
    .header-files-counter .counter-number {
        font-size: 0.8rem;
    }
    
    .header-files-counter .counter-label {
        font-size: 0.7rem;
    }
    
    .header-actions {
        gap: 0.3rem;
        flex-wrap: wrap;
    }
    
    .admin-btn, .logout-btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }
    
    .search-btn {
        padding: 8px 14px !important;
        font-size: 13px !important;
    }
    
    .search-input {
        font-size: 14px;
        padding: 12px 8px;
    }
    
    .search-container {
        width: 98%;
    }
    
    .product-image-container {
        height: 350px;
    }
    
    .product-image {
        height: 100%;
        object-fit: cover;
    }
    
    .product-title {
        font-size: 1.1rem;
    }
    
    .btn-download {
        font-size: 0.95rem;
        padding: 0.8rem 1rem;
        letter-spacing: 0.2px;
    }
    
    .detail-item {
        padding: 0.6rem;
        margin-bottom: 0.6rem;
    }
    
    .detail-item i {
        font-size: 0.9rem;
    }
    
    .stats {
        margin-bottom: 1.25rem;
    }
    
    .stat-item {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .footer {
        padding: 1.5rem 0;
    }
    
    .footer-content {
        gap: 1rem;
    }
    
    .footer-social {
        gap: 0.8rem;
    }
    
    .social-link {
        width: 45px;
        height: 36px;
        font-size: 1.1rem;
        border-radius: 10px;
    }
    
    .footer {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .logo {
        font-size: 1.5rem;
    }
    
    .logo-image {
        height: 50px;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .product-image-container {
        height: 320px;
    }
    
    .product-image {
        height: 100%;
        object-fit: cover;
    }
    
    .product-info {
        padding: 0.875rem;
    }
    
    .btn-download {
        font-size: 0.9rem;
        padding: 0.75rem 0.875rem;
    }
    
    .detail-item {
        padding: 0.5rem;
    }
    
    .search-btn {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
    
    .search-input {
        font-size: 13px;
        padding: 10px 6px;
    }
}

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

.product-card {
    animation: fadeInUp 0.6s ease forwards;
}

.product-card:nth-child(even) {
    animation-delay: 0.1s;
}

.product-card:nth-child(3n) {
    animation-delay: 0.2s;
}

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

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

/* Search Section */
.search-section {
    margin: 30px 0;
    padding: 0 20px;
}

.search-container {
    max-width: 850px;
    margin: 0 auto;
}

.search-form {
    width: 100%;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: rgba(45, 55, 72, 0.8);
    border: 2px solid rgba(74, 85, 104, 0.5);
    border-radius: 12px;
    padding: 4px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.search-icon {
    color: #a0aec0;
    margin: 0 15px;
    font-size: 16px;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 10px;
    color: #e2e8f0;
    font-size: 16px;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.search-input::placeholder {
    color: #a0aec0;
}

.search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    margin-right: 8px;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.clear-search-btn {
    background: rgba(239, 68, 68, 0.8);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

.clear-search-btn:hover {
    background: rgba(239, 68, 68, 1);
    transform: translateY(-2px);
}

/* Responsive Search */
/* Mobile Responsivo - Tablets */
@media (max-width: 600px) {
    .search-section {
        margin: 20px 0;
        padding: 0 15px;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .search-input-group {
        padding: 8px;
        border-radius: 10px;
    }
    
    .search-input {
        padding: 12px 8px;
        font-size: 16px;
    }
    
    .search-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .clear-search-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* Mobile Responsivo - Smartphones */
@media (max-width: 480px) {
    .search-section {
        margin: 15px 0;
        padding: 0 10px;
    }
    
    .search-input-group {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px;
        border-radius: 8px;
    }
    
    .search-input {
        width: 100%;
        padding: 14px 12px;
        font-size: 16px;
        text-align: left;
        border-radius: 6px;
        background: rgba(26, 32, 44, 0.6);
        margin-bottom: 10px;
    }
    
    .search-btn {
        width: 48%;
        margin: 0;
        padding: 14px;
        font-size: 16px;
        border-radius: 6px;
        font-weight: 500;
    }
    
    .clear-search-btn {
        width: 48%;
        margin: 0;
        padding: 14px;
        font-size: 16px;
        border-radius: 6px;
        font-weight: 500;
    }
    
    .search-icon {
        align-self: flex-start;
        margin: 0 0 -8px 0;
        font-size: 18px;
    }
}

/* Mobile Responsivo - Telas muito pequenas */
@media (max-width: 360px) {
    .search-section {
        margin: 10px 0;
        padding: 0 8px;
    }
    
    .search-input-group {
        padding: 10px;
        gap: 10px;
    }
    
    .search-input {
        padding: 12px 10px;
        font-size: 15px;
    }
    
    .search-btn {
        padding: 12px;
        font-size: 15px;
        width: 48%;
    }
    
    .clear-search-btn {
        padding: 12px;
        font-size: 15px;
        width: 48%;
    }
    
    .footer-content {
        gap: 0.8rem;
    }
    
    .footer-social {
        gap: 0.6rem;
    }
    
    .social-link {
        width: 40px;
        height: 32px;
        font-size: 1rem;
        border-radius: 8px;
    }
}

/* Estilos para campos telegram no painel admin */
.telegram-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.telegram-input {
    background: rgba(45, 55, 72, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 6px;
    padding: 6px 10px;
    color: #e2e8f0;
    font-size: 0.85rem;
    width: 120px;
    transition: all 0.3s ease;
}

.telegram-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.telegram-input::placeholder {
    color: #a0aec0;
}

/* Estilos para mensagem de login obrigatório */
.login-required-message {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 55, 72, 0.8);
    border: 2px solid #e53e3e;
    border-radius: 12px;
    padding: 4px;
    min-height: 60px;
    width: 95%;
    max-width: 95%;
    margin: 0 auto;
}

.login-message-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    width: 100%;
    justify-content: center;
}

.login-btn-message {
    display: inline-flex;
    align-items: center;
    background: #667eea;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
}

.login-btn-message:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    color: white;
}