/* === NOVA PALETA DE CORES E VARIÁVEIS GLOBAIS === */
:root {
    --primary-bg: #111827;      /* Tailwind gray-900 */
    --secondary-bg: #1F2937;    /* Tailwind gray-800 */
    --card-bg: #1F2937;         /* Fundo dos cards */
    --border-color: #374151;   /* Tailwind gray-700 */
    
    --accent1: #16C79A;         /* Teal original */
    --accent2: #9333EA;         /* Roxo vibrante (Purple-600) */

    --text-light: #F9FAFB;      /* Tailwind gray-50 */
    --text-muted: #9CA3AF;      /* Tailwind gray-400 */
    
    --glow-color: rgba(22, 199, 154, 0.4);
    --gradient-text: linear-gradient(90deg, var(--accent1), var(--accent2));
    --gradient-border: linear-gradient(90deg, var(--accent1), var(--accent2));
}

/* === ESTILOS GERAIS E FUNDO === */
body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-light);
    background-image: 
        radial-gradient(ellipse at top, var(--secondary-bg), transparent),
        radial-gradient(ellipse at bottom, var(--accent2), transparent 40%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
}

.font-orbitron {
    font-family: 'Orbitron', monospace;
}

/* === COMPONENTES REUTILIZÁVEIS === */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.btn-primary {
    background-image: var(--gradient-text);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(147, 51, 234, 0.2), 0 5px 15px rgba(22, 199, 154, 0.2);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.form-input {
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    border-radius: 0.5rem;
}

.form-input:focus {
    border-color: var(--accent1);
    box-shadow: 0 0 0 3px var(--glow-color);
    outline: none;
}

/* === CABEÇALHO E NAVEGAÇÃO === */
.header {
    background-color: rgba(17, 24, 39, 0.8); /* bg-gray-900 com transparência */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-link {
    transition: color 0.3s ease;
    position: relative;
    padding: 0.25rem 0;
}
.nav-link:hover { color: var(--accent1); }
.nav-link.active { color: var(--accent1); }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-border);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* === SEÇÕES DA PÁGINA INICIAL === */
.hero-section {
    background-image: linear-gradient(rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.9)), url('https://images.unsplash.com/photo-1611606063065-591b9b5f2aBE?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1974&q=80');
    background-size: cover;
    background-position: center;
}

.feature-card {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent1);
    box-shadow: 0 10px 25px var(--glow-color);
}
.feature-icon {
    background: var(--gradient-text);
    padding: 1rem;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-section {
    background: var(--gradient-border);
    padding: 4rem 1rem;
    border-radius: 1rem;
}

/* === NOVO DESIGN DOS CARDS (PRODUTO E GALERIA) === */
.product-card, .gallery-item {
    background-color: var(--card-bg);
    border-radius: 0.75rem;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}
.product-card:hover, .gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}
.product-card::before, .gallery-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 0.75rem;
    border: 2px solid transparent;
    background: var(--gradient-border) border-box;
    -webkit-mask: 
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.product-card:hover::before, .gallery-item:hover::before {
    opacity: 1;
}

.card-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}
.product-card-image, .gallery-image {
    height: 256px;
    width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.product-card:hover .product-card-image,
.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

/* === ESTILOS DOS MODAIS === */
.modal { background-color: rgba(17, 24, 39, 0.85); backdrop-filter: blur(5px); }
.modal-content {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.modal-main-image {
    max-width: 100%;
    max-height: 70vh; /* Limita a altura máxima */
    width: auto;
    height: auto;
    object-fit: contain; /* Garante que a imagem inteira apareça */
    border-radius: 0.5rem;
}
.modal-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.25rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}
.modal-thumbnail:hover, .modal-thumbnail.active {
    border-color: var(--accent1);
}

/* NOVO: Estilos para os botões de navegação do modal */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(17, 24, 39, 0.5);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}
.modal-nav-btn:hover {
    background-color: var(--accent1);
    color: white;
    border-color: var(--accent1);
}
.modal-nav-btn.left-0 {
    left: -2rem;
}
.modal-nav-btn.right-0 {
    right: -2rem;
}

/* === PAINEL DE ADMIN === */
.admin-sidebar {
    background-color: var(--secondary-bg);
    border-right: 1px solid var(--border-color);
}
.admin-card {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
}

.admin-panel {
    background-color: var(--secondary-bg);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.admin-tab {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.admin-tab:hover {
    color: var(--text-light);
}

.admin-tab.admin-tab-active {
    color: var(--accent1);
    border-bottom-color: var(--accent1);
}

.admin-table-container {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
}

.admin-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 1rem;
}

.admin-table thead {
    background-color: var(--primary-bg);
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.admin-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.admin-table tbody tr:last-child {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background-color: rgba(22, 199, 154, 0.05);
}

.admin-table .actions {
    text-align: right;
    white-space: nowrap;
}

.btn-action-edit, .btn-action-delete, .btn-action-view {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    margin: 0 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.btn-action-edit:hover {
    color: white;
    background-color: #2563EB; /* blue-600 */
}

.btn-action-delete:hover {
    color: white;
    background-color: #DC2626; /* red-600 */
}

.btn-action-view:hover {
    color: white;
    background-color: #4B5563; /* gray-600 */
}

/* === NOTIFICAÇÕES === */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.5s ease;
    transform: translateX(120%);
}
.notification.show { transform: translateX(0); }
.notification.success { background-image: var(--gradient-text); }
.notification.error { background-color: #E53E3E; }