/* Dashboard and Glassmorphism Styles */

#dashboardContainerWrapper {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0 160px 0; /* Espaço na parte inferior para não sobrepor o input */
    display: flex;
    flex-direction: column;
}

#dashboardContainerWrapper::-webkit-scrollbar {
    width: 6px;
}
#dashboardContainerWrapper::-webkit-scrollbar-track {
    background: transparent;
}
#dashboardContainerWrapper::-webkit-scrollbar-thumb {
    background-color: rgba(59, 130, 246, 0.3);
    border-radius: 10px;
}

.glass-panel {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 0 20px rgba(59, 130, 246, 0.05);
    border-radius: 12px;
}

.dashboard-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 2rem;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dashboard-header-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    align-self: flex-start;
    margin-left: 5%;
}

/* Hexagon Diagram */
.diagram-container {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1.1;
    margin-bottom: 1.5rem;
}

.diagram-bg {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 115" xmlns="http://www.w3.org/2000/svg"><polygon points="50,2 98,30 98,85 50,113 2,85 2,30" fill="rgba(59,130,246,0.05)" stroke="rgba(59,130,246,0.3)" stroke-width="0.5"/></svg>') center/contain no-repeat;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.2));
}

.node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.node-center { top: 50%; left: 50%; }
.node-tl { top: 30%; left: 30%; }
.node-tr { top: 30%; left: 70%; }
.node-bl { top: 70%; left: 30%; }
.node-bc { top: 85%; left: 50%; }
.node-br { top: 70%; left: 70%; }

.cube {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    box-shadow: inset 0 0 10px rgba(255,255,255,0.5);
    margin-bottom: 8px;
    transition: transform 0.3s, filter 0.3s;
}

.cube-center {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #93c5fd, #3b82f6);
    box-shadow: inset 0 0 15px rgba(255,255,255,0.8), 0 0 25px rgba(59,130,246,0.6);
}

.node:hover .cube {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.node-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Connecting lines */
.conn-line {
    position: absolute;
    background: linear-gradient(90deg, rgba(59,130,246,0.1), rgba(59,130,246,0.6), rgba(59,130,246,0.1));
    height: 2px;
    transform-origin: left center;
    z-index: 5;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}
.l-tl { top: 50%; left: 50%; width: 28%; transform: rotate(-140deg); }
.l-tr { top: 50%; left: 50%; width: 28%; transform: rotate(-40deg); }
.l-bl { top: 50%; left: 50%; width: 28%; transform: rotate(140deg); }
.l-bc { top: 50%; left: 50%; width: 35%; transform: rotate(90deg); }
.l-br { top: 50%; left: 50%; width: 28%; transform: rotate(40deg); }


/* Stats Grid */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
    margin-bottom: 1.5rem;
}

.dash-stat-card {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-header {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-value-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-ring {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 250px;
    position: absolute;
    inset: 0;
}

.circle-bg {
    fill: none;
    stroke: rgba(59, 130, 246, 0.2);
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke-width: 3.8;
    stroke-linecap: round;
    animation: progress 1s ease-out forwards;
}

.circular-chart.blue .circle { stroke: #00e5ff; }

@keyframes progress {
    0% { stroke-dasharray: 0 100; }
}

.percentage {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--text-primary);
}


/* Actions */
.dashboard-actions {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.dash-btn {
    flex: 1;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-cyan {
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}
.btn-cyan:hover {
    background: rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.btn-blue {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}
.btn-blue:hover {
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Glass Input */
.glass-input {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 229, 255, 0.3) !important;
    border-radius: 20px !important;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1), inset 0 0 10px rgba(0, 229, 255, 0.05) !important;
}

.glass-input:focus-within {
    border-color: rgba(0, 229, 255, 0.7) !important;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.2), inset 0 0 15px rgba(0, 229, 255, 0.1) !important;
}

.glass-input .mic-btn {
    color: #00e5ff !important;
}

.glass-input .send-btn {
    background: #3b82f6 !important;
}
.glass-input .send-btn:hover:not(:disabled) {
    background: #2563eb !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
}

@media (max-width: 640px) {
    .dashboard-stats-grid { grid-template-columns: 1fr; }
    .dashboard-actions { flex-direction: column; }
    .diagram-container { aspect-ratio: 1; }
}
