
:root {
    --bg-dark: #0f172a;
    --bg-sidebar: #1e293b;
    --primary: #3b82f6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #ef4444;
}
body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    height: 100vh;
    overflow: hidden;
}
.sidebar {
    width: 280px;
    background-color: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    border-right: 1px solid #334155;
}
.sidebar-header {
    padding: 25px;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
    border-bottom: 1px solid #334155;
    letter-spacing: 2px;
    color: white;
}
.nav-menu {
    list-style: none;
    padding: 10px 0;
    margin: 0;
    overflow-y: auto;
    flex-grow: 1;
}
.nav-item { margin: 5px 15px; }
.nav-link {
    display: block;
    padding: 12px 15px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.nav-link:hover {
    background-color: rgba(59, 130, 246, 0.1);
    color: white;
}
.nav-link.active {
    background-color: var(--primary);
    color: white;
}
.sub-menu {
    list-style: none;
    padding: 5px 0 5px 20px;
    margin: 0;
    display: none;
}
.sub-menu.open { display: block; }
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.header-top {
    padding: 20px 40px;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #334155;
}
.content-area {
    padding: 40px;
    overflow-y: auto;
    height: 100%;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}
.product-card {
    background: var(--bg-sidebar);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s;
    cursor: pointer;
}
.product-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.product-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
}
.product-price {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
    margin: 10px 0;
}
.btn-view {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}
.modal-content {
    background: white;
    color: #333;
    margin: 5% auto;
    width: 80%;
    max-width: 800px;
    border-radius: 15px;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}
@keyframes slideIn { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header {
    background: var(--bg-dark);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.close-modal { cursor: pointer; font-size: 1.5rem; }
.modal-body { padding: 30px; max-height: 80vh; overflow-y: auto; }
.prof-section {
    background: #e3f2fd;
    border-left: 6px solid #2196f3;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 0 10px 10px 0;
    font-style: italic;
}
.prof-title { font-weight: bold; color: #1565c0; margin-bottom: 10px; display: flex; align-items: center; }
.prof-title::before { content: '🎓'; margin-right: 10px; }
.full-desc { line-height: 1.6; white-space: pre-wrap; }

.tab-container {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
    gap: 10px;
}
.tab-btn {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background: none;
    font-weight: bold;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}
.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

.badge-prof {
    background: #e3f2fd;
    border-left: 5px solid #2196f3;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    color: #0d47a1;
}
.badge-pirate {
    background: #ffebee;
    border-left: 5px solid #f44336;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    color: #b71c1c;
}
.badge-title {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 0.8rem;
}
.related-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px dashed #eee;
}
.related-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f9f9f9;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
}
.related-logic {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}
