/* Container Principal */
.dashboard-container {
    padding: 2rem;
    background-color: #f7f9fc;
    flex-grow: 1; /* Permite que o container ocupe o espaço restante */
}

/* Header */
.dashboard-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.dashboard-header p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Seção de Estatísticas (Cartões) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #888;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #444;
}

.stat-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stat-icon {
    font-size: 1.25rem;
    color: #fff;
}

/* Cores dos ícones */
.stat-icon-wrapper.blue { background-color: #1D3B88; }
.stat-icon-wrapper.green { background-color: #399CE5; }
.stat-icon-wrapper.purple { background-color: #5F5DF2; }
.stat-icon-wrapper.orange { background-color: #051AFF; }

/* Seção de Ações Rápidas */
.quick-actions h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.action-button {
    background-color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.action-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.action-icon {
    font-size: 2.25rem;
    margin-right: 1rem;
    color: #a272ff; /* Cor padrão para os ícones das ações */
}

.action-info {
    display: flex;
    flex-direction: column;
}

.action-title {
    font-size: 1rem;
    font-weight: 600;
    color: #444;
}

.action-desc {
    font-size: 0.8rem;
    color: #888;
}

/* Seção de Próximos Agendamentos */
.appointments-section {
    background-color: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.appointments-section h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
}

.no-appointments-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 2rem 0;
}

.no-appointments-icon {
    font-size: 3rem;
    color: #bbb;
    margin-bottom: 1rem;
}

.no-appointments-content p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.manage-button {
    background-color: #5d5dff;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.manage-button:hover {
    background-color: #4444ff;
}

html[data-bs-theme="dark"] .dashboard-container {
    background-color: #121212;
    color: #e0e0e0;
}

html[data-bs-theme="dark"] .dashboard-header h1,
html[data-bs-theme="dark"] .dashboard-header p,
html[data-bs-theme="dark"] .quick-actions h2,
html[data-bs-theme="dark"] .appointments-section h2,
html[data-bs-theme="dark"] .action-title,
html[data-bs-theme="dark"] .stat-value {
    color: #e0e0e0;
}

html[data-bs-theme="dark"] .stat-card,
html[data-bs-theme="dark"] .action-button,
html[data-bs-theme="dark"] .appointments-section {
    background-color: #1e1e1e;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

html[data-bs-theme="dark"] .stat-label,
html[data-bs-theme="dark"] .action-desc,
html[data-bs-theme="dark"] .no-appointments-content p {
    color: #b0b0b0;
}

html[data-bs-theme="dark"] .stat-icon-wrapper.blue { background-color: #3a3aff; }
html[data-bs-theme="dark"] .stat-icon-wrapper.green { background-color: #1e7d3a; }
html[data-bs-theme="dark"] .stat-icon-wrapper.purple { background-color: #6c3bbf; }
html[data-bs-theme="dark"] .stat-icon-wrapper.orange { background-color: #b36b1e; }

html[data-bs-theme="dark"] .action-icon {
    color: #a272ff;
}

html[data-bs-theme="dark"] .no-appointments-icon {
    color: #666;
}

html[data-bs-theme="dark"] .manage-button {
    background-color: #3a3aff;
    color: #fff;
}

html[data-bs-theme="dark"] .manage-button:hover {
    background-color: #2323b0;
}

/* Lista de Agendamentos */
.agendamentos-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.agendamento-item {
    background-color: #f9fafb;
    border-left: 4px solid #5d5dff;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
}

.agendamento-item:hover {
    background-color: #f0f2f5;
    transform: translateX(5px);
}

.agendamento-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.agendamento-time-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
}

.agendamento-hora {
    font-size: 1.3rem;
    font-weight: 700;
    color: #5d5dff;
    margin: 0;
    line-height: 1.2;
}

.agendamento-data {
    font-size: 0.75rem;
    font-weight: 500;
    color: #888;
    margin: 0;
    margin-top: 0.25rem;
}

.agendamento-detalhes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 300px;
}

.agendamento-paciente,
.agendamento-medico {
    font-size: 0.95rem;
    color: #444;
    margin: 0;
    line-height: 1.4;
}

.agendamento-paciente strong,
.agendamento-medico strong {
    font-weight: 600;
    color: #333;
}

.agendamento-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.agendamento-status.status-scheduled {
    background-color: #e3f2fd;
    color: #1976d2;
}

.agendamento-status.status-completed {
    background-color: #e8f5e9;
    color: #388e3c;
}

.agendamento-status.status-pending {
    background-color: #fff3e0;
    color: #f57c00;
}

.agendamento-status.status-cancelled {
    background-color: #ffebee;
    color: #d32f2f;
}

.agendamento-status.status-requested {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.view-all-button {
    width: 100%;
    margin-top: 1rem;
    background-color: #f0f2f5;
    color: #5d5dff;
    border: 2px solid #5d5dff;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-all-button:hover {
    background-color: #5d5dff;
    color: #fff;
}

/* Dark Mode - Agendamentos */
html[data-bs-theme="dark"] .agendamento-item {
    background-color: #2a2a2a;
    border-left-color: #6c6cff;
}

html[data-bs-theme="dark"] .agendamento-item:hover {
    background-color: #333;
}

html[data-bs-theme="dark"] .agendamento-hora {
    color: #8888ff;
}

html[data-bs-theme="dark"] .agendamento-data {
    color: #999;
}

html[data-bs-theme="dark"] .agendamento-paciente,
html[data-bs-theme="dark"] .agendamento-medico {
    color: #d0d0d0;
}

html[data-bs-theme="dark"] .agendamento-paciente strong,
html[data-bs-theme="dark"] .agendamento-medico strong {
    color: #e0e0e0;
}

html[data-bs-theme="dark"] .agendamento-status.status-scheduled {
    background-color: #1a3a52;
    color: #64b5f6;
}

html[data-bs-theme="dark"] .agendamento-status.status-completed {
    background-color: #1b3a1f;
    color: #81c784;
}

html[data-bs-theme="dark"] .agendamento-status.status-pending {
    background-color: #3d2817;
    color: #ffb74d;
}

html[data-bs-theme="dark"] .agendamento-status.status-cancelled {
    background-color: #3d1f1f;
    color: #e57373;
}

html[data-bs-theme="dark"] .agendamento-status.status-requested {
    background-color: #2d1f3d;
    color: #ba68c8;
}

html[data-bs-theme="dark"] .view-all-button {
    background-color: #2a2a2a;
    color: #8888ff;
    border-color: #6c6cff;
}

html[data-bs-theme="dark"] .view-all-button:hover {
    background-color: #6c6cff;
    color: #fff;
}