body { 
    background-color: #f7f3e8; 
    font-family: Arial, sans-serif; 
}

.black-gradient {
    background: linear-gradient(to bottom, #454545 0%, #000000 100%);
}

.btn-pink {
    background: linear-gradient(to bottom, #ec407a 0%, #d81b60 100%);
    border: 1px solid #d81b60;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-pink:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.btn-pink-glossy {
    background: linear-gradient(to bottom, #f48fb1 0%, #d81b60 100%);
    border: 1px solid #d81b60;
    box-shadow: 0 4px 0 #d81b60;
}

.btn-gray {
    background: linear-gradient(to bottom, #6d6d6d 0%, #333333 100%);
    border: 1px solid #222;
}

.promo-card {
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid #ccc;
    background: #d81b60;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

.progress-bar {
    height: 20px;
    background: linear-gradient(to right, #d81b60, #ec407a);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.file-item {
    transition: background-color 0.2s ease;
}

.file-item:hover {
    background-color: rgba(216, 27, 96, 0.1);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #f7f3e8;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    z-index: 1001;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Estilos específicos da página de download */
.download-page {
    background-color: #f4f1ea;
}

.mega-gradient { 
    background: linear-gradient(to bottom, #4a4a4a 0%, #000000 100%); 
}

.table-header { 
    background: linear-gradient(to bottom, #555 0%, #222 100%); 
}

.info-box { 
    background: linear-gradient(to right, #f8f6f0, #fce4ec); 
}

.counter-box {
    transition: all 0.3s ease;
}

.last-upload-box {
    animation: fadeIn 0.5s ease;
}

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

/* Botão GorillaKing Estilizado */
.mega-button {
    /* Tamanho e Fonte */
    padding: 15px 60px;
    font-family: Arial, sans-serif;
    font-size: 32px;
    font-weight: 900;
    font-style: italic;
    color: white;
    text-decoration: none;
    text-align: center;
    
    /* Bordas */
    border-radius: 12px;
    border: 1px solid #d81b60;
    
    /* O SEGREDO: Degradê em camadas para efeito de vidro/gel */
    background: linear-gradient(
        to bottom, 
        #f48fb1 0%,    /* Topo mais claro */
        #ec407a 50%,   /* Meio pink médio */
        #d81b60 50%,   /* Corte seco para o degradê inferior */
        #d81b60 100%   /* Base mais escura */
    );

    /* Sombras: 1. Sombra do texto, 2. Sombra do botão no chão, 3. Brilho interno */
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.4);
    box-shadow: 
        0px 4px 6px rgba(0, 0, 0, 0.3), /* Sombra externa */
        inset 0px 1px 0px rgba(255, 255, 255, 0.4); /* Brilho na borda superior interna */
    
    cursor: pointer;
    transition: all 0.1s ease;
    display: inline-block;
    margin-top: 40px;
}

/* Efeito de clique (afunda o botão) */
.mega-button:active {
    transform: translateY(2px);
    box-shadow: 
        0px 1px 2px rgba(0, 0, 0, 0.3),
        inset 0px 1px 0px rgba(255, 255, 255, 0.2);
}

/* Efeito de passar o mouse (brilho leve) */
.mega-button:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: 
        0px 6px 8px rgba(0, 0, 0, 0.4),
        inset 0px 1px 0px rgba(255, 255, 255, 0.4);
}

.upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    position: relative;
    min-height: 150px;
}

/* Estilo para o container do upload bem-sucedido */
.upload-success-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px 25px;
    background: white;
    border-radius: 12px;
    border: 2px solid #d81b60;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 600px;
    min-height: 120px;
}

.file-info {
    text-align: left;
    background: #f9f9f9;
    padding: 12px 20px;
    border-radius: 8px;
    border-left: 4px solid #d81b60;
    margin-bottom: 15px;
    width: 100%;
}

.download-button-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

/* Estilo para o formulário de upload direto */
.direct-upload-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 500px;
}

.file-input-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.description-input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-style: italic;
    font-size: 14px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.upload-actions {
    display: flex;
    gap: 15px;
    width: 100%;
    justify-content: center;
}

/* Input de arquivo estilizado */
.custom-file-input {
    width: 100%;
    padding: 12px 15px;
    background: white;
    border: 2px dashed #d81b60;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
    color: #555;
    transition: all 0.3s ease;
}

.custom-file-input:hover {
    background: #fce4ec;
    border-color: #d81b60;
}

.file-name-display {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    font-style: italic;
    word-break: break-all;
}

/* Classe para truncar nomes longos */
.truncate-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
    max-width: 200px; /* Limite para visualização */
}

/* Página de Upload separada */
.upload-page {
    background-color: #f7f3e8;
    min-height: 100vh;
}

/* Link de voltar para upload */
.back-to-upload {
    color: #d81b60;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.back-to-upload:hover {
    color: #d81b60;
    text-decoration: underline;
}

/* Estilos do Dashboard */
.user-dashboard-link {
    color: #d81b60;
    font-weight: bold;
    cursor: pointer;
}

.user-dashboard-link:hover {
    text-decoration: underline;
}

/* Estilo para modais internos do dashboard */
.dashboard-modal-inner {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

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

#fileEditModal > div,
#shareModal > div {
    animation: modalFadeIn 0.3s ease;
}

/* Estilo para tabela de arquivos do usuário */
#userFilesTable tr:nth-child(even) {
    background-color: #f9f9f9;
}

#userFilesTable tr:hover {
    background-color: #fce4ec;
}

/* Botões de ação */
.action-btn {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    transform: scale(1.1);
}

/* Barra de storage */
.storage-bar-container {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.storage-bar {
    height: 100%;
    background: linear-gradient(to right, #d81b60, #ec407a);
    transition: width 0.5s ease;
}

/* Responsividade do dashboard */
@media (max-width: 768px) {
    .dashboard-tab {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    #userFilesTable {
        font-size: 12px;
    }
    
    .action-btn {
        padding: 2px 6px;
        font-size: 11px;
    }
}

/* Estilo para planos de upgrade */
.plan-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.plan-card.featured {
    border-color: #d81b60;
    box-shadow: 0 0 15px rgba(216, 27, 96, 0.2);
}

/* ===== LOGO GORILLAKING ===== */
.logo-container {
    display: flex;
    align-items: center;
    /* Contorno branco robusto e sombra projetada */
    filter: 
        drop-shadow(2px 2px 0px #fff) 
        drop-shadow(-2px -2px 0px #fff)
        drop-shadow(2px -2px 0px #fff) 
        drop-shadow(-2px 2px 0px #fff)
        drop-shadow(0px 0px 2px #fff)
        drop-shadow(5px 5px 6px rgba(0,0,0,0.3));
}

.text-wrapper {
    font-family: "Arial Black", Gadget, sans-serif;
    font-style: italic;
    font-size: 60px;
    font-weight: 600;
    letter-spacing: -5px;
    margin: 0;
    display: flex;
    align-items: center;
}

.gorilla, .king {
    display: inline-block;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* O segredo: padding extra para o itálico não cortar */
    padding-right: 15px; 
    margin-right: -15px;
    background-clip: text;
    text-fill-color: transparent;
}

.gorilla {
    background-image: linear-gradient(to bottom, #555 0%, #333 45%, #000 100%);
}

.king {
    background-image: linear-gradient(to bottom, #ec407a 0%, #d81b60 45%, #d81b60 100%);
}

/* Versão menor para a página de download */
.download-logo .text-wrapper {
    font-size: 60px;
}

.download-center-text {
    color: #666;
    font-weight: normal;
    display: inline-block;
    vertical-align: bottom;
    margin-left: 10px;
}

/* Responsividade da logo */
@media (max-width: 768px) {
    .text-wrapper {
        font-size: 60px;
    }
    
    .download-logo .text-wrapper {
        font-size: 40px;
    }
    
    .download-center-text {
        font-size: 12px;
        margin-left: 5px;
    }
}

@media (max-width: 480px) {
    .text-wrapper {
        font-size: 40px;
        letter-spacing: -3px;
    }
    
    .download-logo .text-wrapper {
        font-size: 30px;
    }
    
    .download-center-text {
        font-size: 10px;
    }
}

/* Estilos para o Painel Administrativo */
#adminPanel {
    animation: fadeIn 0.3s ease;
}

#adminPanel .bg-white {
    animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Sidebar banners */
#sidebarLeft, #sidebarRight {
    z-index: 10;
}

#sidebarLeft {
    margin-left: calc((100vw - 900px) / 2 - 160px);
}

#sidebarRight {
    margin-right: calc((100vw - 900px) / 2 - 160px);
}

@media (max-width: 1200px) {
    #sidebarLeft, #sidebarRight {
        display: none;
    }
}

/* Banner preview */
#bannerPreviewDeal,
#bannerPreviewTurbo,
#bannerPreviewBest,
#bannerPreviewSidebar1,
#bannerPreviewSidebar2 {
    border: 2px dashed #ccc;
    object-fit: contain;
}

/* Admin link in header */
#adminLink {
    font-size: 12px;
    padding: 2px 6px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

#adminLink:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

/* ====== ESTILOS PARA LIMITE DE DOWNLOAD ====== */

/* Badge para arquivos torrent */
.torrent-badge {
    background: linear-gradient(to right, #ff6b6b, #ee5a24);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 5px;
    vertical-align: middle;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Badge para conteúdo premium */
.premium-only {
    background: linear-gradient(to right, #ffd93d, #ff9a00);
    color: #000;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 5px;
    vertical-align: middle;
    display: inline-block;
}

/* Botão desabilitado por limite */
.btn-disabled-limit {
    background: linear-gradient(to bottom, #cccccc 0%, #999999 100%);
    border: 1px solid #888;
    color: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-disabled-limit:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Botão desabilitado de torrent */
.btn-disabled-torrent {
    background: linear-gradient(to bottom, #cccccc 0%, #999999 100%);
    border: 1px solid #888;
    color: #666;
    cursor: not-allowed;
}

/* Destaque para seção de torrent */
.torrent-section {
    border-left: 4px solid #ff6b6b;
    background: linear-gradient(to right, rgba(255, 107, 107, 0.1), rgba(255, 107, 107, 0.05));
}

/* Aviso de torrent */
.torrent-warning {
    background: linear-gradient(to right, #fff5f5, #ffe5e5);
    border: 1px solid #ffcccc;
    border-left: 4px solid #ff6b6b;
}

/* Estilos para limite de download */
.limit-warning {
    background: linear-gradient(to right, #ffcccc, #ff9999);
    border: 2px solid #ff6666;
    border-left: 6px solid #ff0000;
    color: #660000;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
}

.limit-info {
    background: linear-gradient(to right, #ccffcc, #99ff99);
    border: 2px solid #66cc66;
    border-left: 6px solid #00aa00;
    color: #006600;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
}

.limit-counter {
    font-size: 24px;
    font-weight: bold;
    color: #d81b60;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.limit-exceeded {
    background: linear-gradient(to bottom, #ffcccc 0%, #ff9999 100%);
    border: 2px solid #ff6666;
    color: #990000;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.2);
}

.upgrade-prompt {
    background: linear-gradient(to right, #ccffcc, #99ff99);
    border: 2px solid #d81b60;
    color: #006600;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upgrade-prompt:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(216, 27, 96, 0.3);
}

/* Badge de limite */
.limit-badge {
    background: linear-gradient(to right, #ff6666, #cc0000);
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
    vertical-align: middle;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Responsividade para mensagens de limite */
@media (max-width: 768px) {
    .limit-warning, .limit-info, .limit-exceeded, .upgrade-prompt {
        font-size: 14px;
        padding: 10px;
    }
    
    .limit-counter {
        font-size: 20px;
    }
}
/* Estilos para o painel de controle de limites */
.system-settings-panel {
    animation: slideInDown 0.5s ease;
}

.limit-control-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.limit-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.limit-status-enabled {
    background: linear-gradient(to right, #00b09b, #96c93d);
    color: white;
}

.limit-status-disabled {
    background: linear-gradient(to right, #ff416c, #ff4b2b);
    color: white;
}

.admin-action-button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.admin-action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.admin-action-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-action-button:hover::after {
    opacity: 1;
}

/* Estilos para os controles do limite */
.limit-control-input {
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    font-size: 16px;
    padding: 10px 15px;
}

.limit-control-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.limit-control-checkbox {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid #cbd5e0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.limit-control-checkbox:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.limit-control-checkbox:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Tooltips para o painel admin */
.admin-tooltip {
    position: relative;
    cursor: help;
}

.admin-tooltip:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2d3748;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.admin-tooltip:hover::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #2d3748;
    margin-bottom: -12px;
}

/* Animações */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

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

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.shake-animation {
    animation: shake 0.5s ease;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .limit-control-card {
        padding: 15px;
    }
    
    .admin-action-button {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .limit-control-input {
        font-size: 14px;
        padding: 8px 12px;
    }
}

/* Adicionar ao final do style.css (após todas as outras regras) */
.btn-black {
    background: linear-gradient(to bottom, #333333 0%, #000000 100%);
    border: 1px solid #000000;
    box-shadow: 0 4px 0 #000000;
    color: white;
    font-weight: bold;
    font-style: italic;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-black:hover {
    background: linear-gradient(to bottom, #444444 0%, #111111 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #000000;
}

.btn-black:active {
    transform: translateY(1px);
    box-shadow: 0 2px 0 #000000;
}

/* Estilo para quando o botão está desabilitado */
.btn-black:disabled {
    background: linear-gradient(to bottom, #666666 0%, #444444 100%);
    border-color: #555555;
    color: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-black:disabled:hover {
    background: linear-gradient(to bottom, #666666 0%, #444444 100%);
    transform: none;
    box-shadow: none;
}

/* Adicionar ao final do arquivo style.css */

/* Spinner de carregamento */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Estilo para a barra de progresso */
#progressBar {
    transition: width 1s linear;
}

/* Estilo para quando o download está pronto */
.download-ready {
    background: linear-gradient(to right, #d4edda, #c3e6cb);
    border-color: #28a745;
    animation: pulse 2s infinite;
}

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


/* Adicionar ao final do arquivo style.css */

/* Spinner de carregamento */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Estilo para a barra de progresso */
#progressBar {
    transition: width 1s linear;
}

/* Estilo para quando o download está pronto */
.download-ready {
    background: linear-gradient(to right, #d4edda, #c3e6cb);
    border-color: #28a745;
    animation: pulse 2s infinite;
}

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