:root {
    --primary: #4e73df; --success: #1cc88a; --danger: #e74a3b;
    --dark: #2c3e50; --light: #f8f9fc; --black: #1e1e1e;
}
body { font-family: 'Segoe UI', sans-serif; background-color: var(--light); margin: 0; padding: 20px; }
.container { max-width: 1200px; margin: auto; }
.nav-menu { display: flex; gap: 10px; margin-bottom: 20px; }
.btn-nav {
    background: white; color: var(--primary); border: 1px solid var(--primary);
    padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: bold;
}
.btn-nav:hover { background: var(--primary); color: white; }
.card { background: white; padding: 20px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); margin-bottom: 20px; }
.table-container { background: white; padding: 20px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 15px; border-bottom: 2px solid #eee; color: #666; }
td { padding: 10px; border-bottom: 1px solid #eee; }
input, textarea { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 5px; box-sizing: border-box; }
textarea { height: 100px; resize: vertical; }
.btn { padding: 8px 15px; border-radius: 5px; border: none; cursor: pointer; font-weight: bold; color: white; }
.btn-save { background: var(--success); }
.btn-delete { background: var(--danger); text-decoration: none; font-size: 0.8rem; }
.log-container { background: var(--black); color: #00ff00; padding: 20px; border-radius: 10px; height: 500px; overflow-y: auto; font-family: monospace; }
.alert { padding: 15px; background: #d4edda; color: #155724; border-radius: 5px; margin-bottom: 20px; }
/* Estilos para a Loja de Apps (index.php) */
.category-header {
    background: var(--dark);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 40px 0 20px 0;
    font-size: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.app-image-container {
    width: 100%;
    height: 160px;
    background: #f1f5f9;
    border-radius: 10px 10px 0 0;
    margin: -30px -25px 20px -25px;
    width: calc(100% + 50px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.app-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.app-placeholder {
    font-size: 4rem;
    opacity: 0.2;
}
.subcategory-badge {
    display: inline-block;
    background: #e2e8f0;
    color: var(--dark);
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 12px;
    margin-bottom: 10px;
}
/* Botão de Cadeado Discreto */
.admin-access {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 9999;
    text-decoration: none;
    font-size: 18px;
    opacity: 0.2; /* Fica bem clarinho para ser discreto */
    transition: opacity 0.3s, transform 0.3s;
    cursor: pointer;
    filter: grayscale(100%);
}

.admin-access:hover {
    opacity: 1; /* Ganha cor e visibilidade ao passar o mouse */
    transform: scale(1.2);
    filter: grayscale(0%);
}

@media (max-width: 600px) {
    .admin-access { opacity: 0.4; } /* No celular um pouco mais visível */
}

/* Botão de porta-saida */
.admin-exit {
    
    top: 15px;
    right: 10px;
    z-index: 9999;
    text-decoration: none;
    font-size: 30px;
    opacity: 1; /* esposto */
    
    
}


@media (max-width: 600px) {
    .admin-exit { opacity: 1; } /* No celular um pouco mais visível */
}