/* ==================== ESTILOS DA PÁGINA DASHBOARD ==================== */
/*
 * Estilos específicos para a página Dashboard.
 * Design minimalista e coerente com o restante da aplicação.
 */

/* ==================== CONTAINER TOPO ==================== */

.dashboard-top {
    margin-bottom: 32px;
}

.dashboard-top-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.dashboard-greeting {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
}

.dashboard-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-config-btn,
.dashboard-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: background-color var(--transition-speed) var(--transition-ease),
                color var(--transition-speed) var(--transition-ease);
}

.dashboard-config-btn:hover,
.dashboard-logout-btn:hover {
    background-color: var(--hover);
    color: var(--text-primary);
}

.dashboard-config-btn:active,
.dashboard-logout-btn:active {
    background-color: var(--active);
}

.dashboard-config-btn svg,
.dashboard-logout-btn svg {
    width: 18px;
    height: 18px;
}

/* ==================== CONTAINER BANNER ==================== */

.dashboard-banner-container {
    margin-bottom: 48px;
}

.dashboard-banner-container:empty {
    display: none !important;
}

.dashboard-banner-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    min-height: 200px;
}

.dashboard-banner-slider {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

/* Banner único (sem slider) - altura definida pelo wrapper */
.dashboard-banner-wrapper .dashboard-banner:only-child {
    position: relative;
    width: 100%;
    height: 200px;
}

/* Mobile: altura menor */
@media (max-width: 768px) {
    .dashboard-banner-wrapper {
        min-height: 160px;
    }
    
    .dashboard-banner-slider {
        height: 160px;
    }
    
    .dashboard-banner-wrapper .dashboard-banner:only-child {
        height: 160px;
    }
}

.dashboard-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s var(--transition-ease);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.dashboard-banner.active {
    opacity: 1;
    z-index: 1;
}

.dashboard-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    background: var(--bg-elevated);
}

/* Picture element para responsividade */
.dashboard-banner picture {
    width: 100%;
    height: 100%;
    display: block;
}

.dashboard-banner picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Fallback caso a imagem não carregue */
.dashboard-banner-image[src=""],
.dashboard-banner-image:not([src]) {
    display: none;
}

/* Indicadores de banner */
.dashboard-banner-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 0;
}

.dashboard-banner-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-speed) var(--transition-ease);
}

.dashboard-banner-indicator:hover {
    background: var(--text-secondary);
    transform: scale(1.2);
}

.dashboard-banner-indicator.active {
    background: var(--text-primary);
    width: 24px;
    border-radius: 4px;
}

/* ==================== ATALHOS PARA FERRAMENTAS ==================== */

.dashboard-tools {
    margin-bottom: 32px;
}

.dashboard-tools-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 24px 0;
}

.dashboard-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.dashboard-tool-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) var(--transition-ease);
    cursor: pointer;
}

.dashboard-tool-card:hover {
    border-color: var(--text-secondary);
    transform: translateY(-2px);
    background: var(--bg-elevated);
}

.dashboard-tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    transition: all var(--transition-speed) var(--transition-ease);
}

.dashboard-tool-card:hover .dashboard-tool-icon {
    border-color: var(--text-secondary);
    background: var(--hover);
}

.dashboard-tool-icon svg {
    width: 24px;
    height: 24px;
}

.dashboard-tool-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.dashboard-tool-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ==================== RESPONSIVIDADE ==================== */

@media (max-width: 768px) {
    .dashboard-top-content {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .dashboard-greeting {
        font-size: 20px;
    }
    
    .dashboard-banner-container {
        margin-bottom: 32px;
    }
    
    .dashboard-banner-indicators {
        margin-top: 12px;
        gap: 6px;
    }
    
    .dashboard-banner-indicator {
        width: 6px;
        height: 6px;
    }
    
    .dashboard-banner-indicator.active {
        width: 20px;
    }
    
    .dashboard-tools-title {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .dashboard-tools-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .dashboard-tool-card {
        padding: 20px;
    }
    
    .dashboard-tool-icon {
        width: 40px;
        height: 40px;
    }
    
    .dashboard-tool-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .dashboard-tool-name {
        font-size: 15px;
    }
    
    .dashboard-tool-description {
        font-size: 12px;
    }
}

