/**
 * Dashboard - Evolution Manager Style
 */

.dashboard-container {
    animation: fadeIn 0.4s ease;
}

/* Profile Section - Card style */
.profile-section {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    margin-bottom: 16px;
}

.profile-avatar {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: var(--success);
    border-radius: 50%;
    border: 2px solid var(--card-bg);
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-info h3 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-info p {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.device-status {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
}

.device-status span {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
}

/* Quality Indicators */
.quality-good {
    color: var(--success) !important;
}

.quality-medium {
    color: var(--warning) !important;
}

.quality-bad {
    color: var(--error) !important;
}

/* Stats Grid - Evolution style */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.stat-card {
    background: var(--bg);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    text-align: center;
    transition: all 0.2s;
}

.stat-card.clickable {
    cursor: pointer;
}

.stat-card.clickable:hover {
    border-color: var(--primary);
}

.stat-card i {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

/* Dashboard Actions */
.dashboard-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.btn-dash {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-dash:hover {
    transform: translateY(-1px);
}

.btn-test {
    background: var(--primary);
    color: white;
}

.btn-test:hover {
    background: var(--primary-dark);
}

.btn-reconnect {
    background: var(--success);
    color: white;
}

.btn-reconnect:hover {
    opacity: 0.9;
}

/* Control Buttons Row */
.control-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 16px;
}

.btn-control {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-control.btn-reiniciar {
    background: var(--bg);
    border: 1px solid var(--card-border);
    color: var(--text);
}

.btn-control.btn-reiniciar:hover {
    border-color: var(--warning);
    color: var(--warning);
}

.btn-control.btn-desconectar {
    background: var(--orange);
    border: none;
    color: white;
}

.btn-control.btn-desconectar:hover {
    opacity: 0.9;
}