/* ===== ESTILOS PARA DASHBOARDS SEPARADOS ===== */

.dashboard-content {
    padding: 20px;
}

.dashboard-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f1f1;
}

.dashboard-header.admin-header {
    border-bottom-color: #e74c3c;
}

.dashboard-header.professional-header {
    border-bottom-color: #3498db;
}

.dashboard-header.partner-header {
    border-bottom-color: #2ecc71;
}

.dashboard-subtitle {
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 5px;
}

/* Grids de estatísticas */
.admin-stats-grid,
.professional-stats-grid,
.partner-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

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

.admin-stat .stat-icon { background: #ffebee; color: #e74c3c; }
.professional-stat .stat-icon { background: #e3f2fd; color: #3498db; }
.partner-stat .stat-icon { background: #e8f5e9; color: #2ecc71; }
.revenue-stat .stat-icon { background: #fff3e0; color: #f39c12; }

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1;
}

.stat-label {
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 5px;
}

/* Seções do dashboard */
.dashboard-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dashboard-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f1f1;
}

/* Ações rápidas */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-actions button {
    flex: 1;
    min-width: 150px;
}

/* Listas */
.appointments-list,
.exams-list,
.referrals-list,
.commissions-list,
.notifications-list {
    max-height: 300px;
    overflow-y: auto;
}

.exam-item,
.referral-item,
.commission-item,
.notification-item {
    padding: 12px;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exam-item:last-child,
.referral-item:last-child,
.commission-item:last-child,
.notification-item:last-child {
    border-bottom: none;
}

.exam-patient,
.referral-patient,
.commission-partner {
    font-weight: bold;
    color: #2c3e50;
}

.exam-date,
.referral-date {
    font-size: 12px;
    color: #7f8c8d;
}

.exam-actions,
.referral-status {
    display: flex;
    gap: 5px;
}

/* Status */
.status-pending {
    color: #f39c12;
    font-weight: bold;
}

.status-converted,
.status-paid {
    color: #27ae60;
    font-weight: bold;
}

/* Comissões para parceiros */
.commission-info {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border-radius: 8px;
}

.commission-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.commission-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.commission-item .label {
    color: #7f8c8d;
}

.commission-item .value {
    font-weight: bold;
    font-size: 18px;
}

.commission-item .value.available {
    color: #27ae60;
}

.commission-item .value.processing {
    color: #f39c12;
}

.commission-item .value.received {
    color: #3498db;
}

/* Link de indicação */
.referral-link-box {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.referral-link-box input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: monospace;
}

.help-text {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
}

.referral-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.referral-stats .stat {
    text-align: center;
}

.referral-stats .number {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.referral-stats .label {
    font-size: 12px;
    color: #7f8c8d;
    text-transform: uppercase;
}

/* Notificações */
.notifications-section .notification-item {
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #3498db;
}

.notification-item.commission {
    border-left-color: #f39c12;
}

.notification-icon {
    font-size: 24px;
    margin-right: 15px;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.notification-message {
    font-size: 14px;
    color: #7f8c8d;
}

/* Controles de comissão do admin */
.commission-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
}

.admin-reports {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Botões */
.btn-small {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    background: #f1f1f1;
    color: #333;
}

.btn-small:hover {
    background: #e0e0e0;
}

.btn-primary {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-primary:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* Mensagens */
.no-data {
    text-align: center;
    padding: 20px;
    color: #95a5a6;
    font-style: italic;
}

/* Responsividade */
@media (max-width: 768px) {
    .admin-stats-grid,
    .professional-stats-grid,
    .partner-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .two-columns {
        flex-direction: column;
    }
    
    .commission-details {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .quick-actions button {
        width: 100%;
    }
}