/* ===== DESKTOP HUB - MENU PARA PC ESTILO VOYGER ===== */
/* Sistema de navegação tela a tela para PC */
/* Tema claro: fundo branco, detalhes em preto */

/* Container principal do hub */
.desktop-hub-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding: 0;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    box-sizing: border-box;
    z-index: 20050;
    overflow-y: auto;
}

/* Mostrar quando modo está ativo */
body.desktop-hub-mode .desktop-hub-container {
    display: block;
}

body.desktop-hub-mode .dashboard-sidebar,
body.desktop-hub-mode #sidebar,
body.desktop-hub-mode #sidebar-container,
body.desktop-hub-mode .sidebar-drawer {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    overflow: hidden !important;
}

/* Header do hub */
.desktop-hub-header {
    padding: 60px 80px 30px;
    color: #000000;
    max-width: 1400px;
    margin: 0 auto;
}

.desktop-hub-greeting {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: #000000;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

/* Logo do Voyger */
.desktop-hub-logo {
    margin-bottom: 30px;
}

.desktop-hub-logo img {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.desktop-hub-logo img:hover {
    transform: scale(1.02);
}

.desktop-hub-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    color: #666666;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Categorias */
.desktop-hub-categories {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 80px 60px;
}

.desktop-hub-category {
    margin-bottom: 34px;
}

.desktop-hub-category:last-child {
    margin-bottom: 10px;
}

.desktop-hub-category-title {
    margin: 0 0 14px 0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.01em;
}

.desktop-hub-category-title i {
    color: #111827;
    opacity: 0.9;
}

/* Grid de módulos */
.desktop-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 0;
    max-width: none;
    margin: 0;
}

/* Cards dos módulos - Tema claro Voyger */
.desktop-hub-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-height: 140px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Linha superior sutil (estilo Voyger) */
.desktop-hub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #000000, #333333);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.desktop-hub-card:hover::before {
    transform: scaleX(1);
}

.desktop-hub-card:hover {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

.desktop-hub-card:active {
    transform: translateY(-3px);
}

/* Ícone do card */
.desktop-hub-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.desktop-hub-card:hover .desktop-hub-card-icon {
    transform: scale(1.08) rotate(3deg);
    background: linear-gradient(135deg, #1a1a1a 0%, #444444 100%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.desktop-hub-card-icon i {
    font-size: 1.4rem;
    color: #ffffff;
}

/* Título do card */
.desktop-hub-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #333333;
    text-align: center;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
}

.desktop-hub-card:hover .desktop-hub-card-title {
    color: #000000;
}

/* Badge de notificação */
.desktop-hub-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #000000;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Card desabilitado */
.desktop-hub-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.desktop-hub-card.disabled:hover {
    transform: none;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Botão de voltar ao hub */
.desktop-hub-back-btn {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

body.desktop-hub-mode:not(.desktop-hub-active) .desktop-hub-back-btn {
    display: inline-flex !important;
}

.desktop-hub-back-btn:hover {
    background: #333333;
    transform: translateX(-3px);
}

.desktop-hub-back-btn i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.desktop-hub-back-btn:hover i {
    transform: scale(1.1);
}

/* Quando estiver visualizando um módulo */
body.desktop-hub-mode:not(.desktop-hub-active) .desktop-hub-container {
    display: none;
}

body.desktop-hub-mode:not(.desktop-hub-active) .dashboard-main,
body.desktop-hub-mode:not(.desktop-hub-active) .dashboard-container,
body.desktop-hub-mode:not(.desktop-hub-active) #main-content-area {
    display: block !important;
    margin-left: 0 !important;
    width: 100% !important;
}

body.desktop-hub-mode:not(.desktop-hub-active) .dashboard-header {
    display: flex !important;
    margin-left: 0 !important;
    width: 100% !important;
}

/* Animações de entrada */
@keyframes hubCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.desktop-hub-card {
    animation: hubCardFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: both;
}

.desktop-hub-card:nth-child(1) {
    animation-delay: 0.05s;
}

.desktop-hub-card:nth-child(2) {
    animation-delay: 0.08s;
}

.desktop-hub-card:nth-child(3) {
    animation-delay: 0.11s;
}

.desktop-hub-card:nth-child(4) {
    animation-delay: 0.14s;
}

.desktop-hub-card:nth-child(5) {
    animation-delay: 0.17s;
}

.desktop-hub-card:nth-child(6) {
    animation-delay: 0.20s;
}

.desktop-hub-card:nth-child(7) {
    animation-delay: 0.23s;
}

.desktop-hub-card:nth-child(8) {
    animation-delay: 0.26s;
}

.desktop-hub-card:nth-child(9) {
    animation-delay: 0.29s;
}

.desktop-hub-card:nth-child(10) {
    animation-delay: 0.32s;
}

.desktop-hub-card:nth-child(11) {
    animation-delay: 0.35s;
}

.desktop-hub-card:nth-child(12) {
    animation-delay: 0.38s;
}

/* Responsividade - ocultar em mobile */
@media (max-width: 768px) {
    .desktop-hub-container {
        display: none !important;
    }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .desktop-hub-header {
        padding: 40px 40px 20px;
    }

    .desktop-hub-categories {
        padding: 16px 40px 50px;
    }

    .desktop-hub-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }

    .desktop-hub-greeting {
        font-size: 2rem;
    }
}
