/**
 * Dashboard Components CSS
 *
 * Estilos adicionais para os Web Components da dashboard
 */

/* ========== WRAPPER PRINCIPAL ========== */
.baya-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.baya-dashboard {
    flex: 1;
}

/* ========== HEADER COMPONENT ========== */
.baya-header {
    background-color: #fff;
    border-bottom: 2px solid #000;
    padding: 16px 32px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 48px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-btn {
    background: transparent;
    border: none;
    font-family: var(--font-narrow, 'Arial');
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover {
    background-color: #f0f0f0;
    border-radius: 8px;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.arrow-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.dropdown.open .arrow-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 12px;
    min-width: 220px;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: #000;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: #f0f0f0;
}

.dropdown-menu a:first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.dropdown-menu a:last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* ========== CAMINHO CARD COMPONENT ========== */
caminho-card {
    display: block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

caminho-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-progress {
    margin-top: 12px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.progress-percentage {
    color: var(--purple, #6B46C1);
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6B46C1 0%, #9061F9 100%);
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* Estado vazio */
.no-caminhos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.no-caminhos p {
    font-size: 20px;
    margin-bottom: 24px;
    color: #666;
}

/* ========== FOOTER COMPONENT ========== */
dashboard-footer {
    display: block;
    margin-top: auto;
}

.footer .social-links {
    margin-top: 16px;
}

.footer .social-links a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer .social-links a:hover {
    transform: scale(1.1);
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 768px) {
    .baya-header {
        padding: 12px 16px;
    }

    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .nav-btn {
        font-size: 16px;
        padding: 6px 12px;
    }

    .dropdown-menu {
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }

    .dropdown.open .dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 36px;
    }

    .nav {
        width: 100%;
    }

    .nav-btn {
        flex: 1;
        justify-content: center;
        font-size: 14px;
    }
}
